if (1 in [1,0]) == True:
print('a')
else:
print('b') #结果a
if 1 in [1, 0] == True:
print('a')
else:
print('b') #结果b
print((2 > 1) is True) #True
print(2 > 1 is True) #False
python in is == >等优先级对比
猜你喜欢
转载自blog.csdn.net/qq_35515661/article/details/81230658
今日推荐
周排行