python的逻辑运算符:
a = 0
b = 1
c = 2
# 1. and: 与: 都真才真
print((a < b) and (c > b))
print(a > b and c > b)
# 2. or:或 : 一真则真,都假才假
print(a < b or c > b)
print(a > b or c > b)
# 3. not: 非: 取反
print(not False)
print(not c > b)
python的逻辑运算符:
a = 0
b = 1
c = 2
# 1. and: 与: 都真才真
print((a < b) and (c > b))
print(a > b and c > b)
# 2. or:或 : 一真则真,都假才假
print(a < b or c > b)
print(a > b or c > b)
# 3. not: 非: 取反
print(not False)
print(not c > b)