print(2 and 1) #1 print(0 and 1) #0 print(0 or 1) #1 print(3 or 5) #3
麻烦问下,以上代码返回结果是什么原理呀
收起
这是布尔类型判断真假,0位假,非0为真
报告相同问题?