局部变量 - (void)test2 { NSUInteger localInt; NSLog(@"%@", @(localInt)); } localInt不会被编译器初始化,所以值未定,不能认为是0.