标签:not print 逻辑 运算 优先 str 返回 逻辑运算 优先级
优先级从大到小:()>not>and>or
print(1 or 2) 返回1 print(3 or 2) 返回3
print(1 and 2) 返回2 print(3 and 2) 返回2
逻辑运算符运算
原文地址:https://www.cnblogs.com/gldlife/p/9161611.html