开发笔记: BOOL oneStr = YES; BOOL twoStr = YES; NSLog(@"str = %@", oneStr ^ twoStr ? @"1" : @"2"); 结果为2. 相等的话为2 , 不相等为1