标签:class 运算 pytho python 逻辑判断 pre 判断 逻辑 and
>>> print(9 or 2) 9 >>> print(6 or 2>1) 6 >>> print(0 or 5<4) False >>> print(2>1 or 6) True >>> print(3 and 2>1) True >>> print(0 and 3>1) 0 >>> print(0 and 3) 0 >>> print(2>1 and 3) 3 >>> print(3>1 and 0) 0 >>> print (6 or 2>1) 6 >>> print (3 or 2>1) 3 >>> print(0 or 5<4) False >>> print(5<4 or 3) 3 >>> print(2>1 and 3) 3 >>> print(3>1 and 0) 0 >>> print(3>1 and 2 or 2<3 and 3 and 4 or 3>2) 2
标签:class 运算 pytho python 逻辑判断 pre 判断 逻辑 and
原文地址:https://www.cnblogs.com/yuhoucaihong/p/10197129.html