a = 0b = 1c = 2# 1. and:与--都真才真print(a < b and c > b) #书写习惯,每组大于小于都用括号括起来,方便阅读防止歧义(运算优先级也更明显)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)
