Files
python/pythonProject/流程语句/if/多分支结构1.py
T

16 lines
350 B
Python
Raw Normal View History

2024-01-01 13:00:33 +08:00
scope=eval(input("亲输入您的成绩"))
2024-01-01 16:50:40 +08:00
if scope<0 or scope>120:
2024-01-01 13:00:33 +08:00
print("您的成绩输入有误")
elif 0<=scope<60:
print("未及格")
elif 60<=scope<80:
print("还可以,继续努力")
elif 80<=scope<90:
print("优秀")
elif 90<=scope<100:
print("非常优秀")
elif scope==100:
print("满分")
2024-01-01 16:50:40 +08:00
else:
print("hehe")