Python 测验 – 操作符
Python 测验
x = True
y = False
z = False
if x or y and z:
print("yes")
else:
print("no")
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)
Python 测验