在阅读python中的逻辑运算符时,我遇到了表达式:
5 and 1
输出:1
5 or 1
输出:5
任何人都可以解释这是如何工作的? 我知道,操作数的的逻辑运算符是布尔
python
python ×1