Python:表达式2<=1 and 0 or not 0的值为什么是True?

求分析

在不加括号时候, and优先级大于or,先计算 2 <=1 and 0 ,结果为False,然后False or
not 0,等于False or True,所以为True。追问

谢谢

温馨提示:答案为网友推荐,仅供参考
相似回答