为什么条件不被执行
while 1 < 2:num=input("请输入你的分数: ")
num=int(num)
if num==100:
print("S")
else:
if 90 <=num<100:
print("A")
else:
if 80<=num<90:
print("B")
else:
if 60<=nun<80:
print("C")
else:
print("D")
请输入你的分数: 70
Traceback (most recent call last):
File "D:/Python310/b.py", line 13, in <module>
if 60<=nun<80:
NameError: name 'nun' is not defined. Did you mean: 'num'?
请输入你的分数: 50
Traceback (most recent call last):
File "D:/Python310/b.py", line 13, in <module>
if 60<=nun<80:
NameError: name 'nun' is not defined. Did you mean: 'num'?
一点都不看错误信息吗
nun 这个变量没有被找到
页:
[1]