为什么表达式1and 0的值为0

如题
2025-06-22 22:07:25
推荐回答(1个)
回答1:

逻辑运算符and的运算规则:
1 and 1=1
0 and 0=0
1 and 0=0 <==
0 and 1=0