1.9//2 What is the output result of the expression?
4
注意://为取整符,%为取余符
2. What is the output result?
x = True
y = False
z = False
if not x or y:
print(1)
elif not x or not y and z:
print(2)
elif not x or y or not y and x:
print(3)
else:
print(4)
3
注意:优先级顺序为 NOT、AND、OR。