逻辑运算 and or not 0转换为bool值是False 非0转换为bool值为True
or 真或假输出真 x or y 如果x=True 则返回x
and 真和假输出假 x and y 如果x=True 则返回y (和and相反) 两个都是True 则返回最后一个True
not 不是真就是假,不是假就是真
优先级,()>not>and>or
逻辑运算 and or not 0转换为bool值是False 非0转换为bool值为True
or 真或假输出真 x or y 如果x=True 则返回x
and 真和假输出假 x and y 如果x=True 则返回y (和and相反) 两个都是True 则返回最后一个True
not 不是真就是假,不是假就是真
优先级,()>not>and>or