TUTORIAL开发笔记与题库FETCHED

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) eli..

更新于 2026/7/16

教程详情页默认 noindex。

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 测验 - 操作符

Python 测验 Python 测验