Python(25)_or

#-*-coding:utf-8-*-
'''
'''
print(2>1 and 1<4)   # True

print(2>1 and 1<4 or 2<3 and 9>6 or 2<4 and 3<2) # True

print(1 or 2) # 1
print(0 or 2) # 2
print(2 or 3) # 2
print(3 or 2) # 3
print(3 or 0) # 3
print(5 or 100 or 12 or 9) # 5
print(1 and 2) # 2

猜你喜欢

转载自www.cnblogs.com/sunnybowen/p/10197800.html