python中逻辑操作符

>>> 5 > 3 and 5 > 4
True
>>> 5 > 3 and 5 > 6
False
>>> 5 > 3 or 5 < 4
True
>>> 5 > 7 or 5 > 6
False
>>> not 0
True
>>> not 1
False
>>> not 2
False
>>> not 3
False
原文地址:https://www.cnblogs.com/liujiaxin2018/p/14151435.html