Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么说 0 不等于 0 ?
是选角问题。count返回一个NSUInteger并且0被假定为一个NSInteger。通过书写0U或将零转换为无符号(NSUInteger)0。
count
NSUInteger
0
NSInteger
0U
(NSUInteger)0