运行第八讲的课程里面的代码时报错invalid syntax
运行第八讲相关练习时报错invalid syntaxscore=int(input("请输入一个分数:"))
if 100>=score>90:
print("优秀")
elif 90>=score>80:
print("良好")
elif 80>=score>60:
print("中等")
else 60>=score>0:
print("需要努力啊!")
运行后报错指示在数字60这里,请大神指正错在哪啊!
else 不支持设置条件的哈~
score=int(input("请输入一个分数:"))
if 100>=score>90:
print("优秀")
elif 90>=score>80:
print("良好")
elif 80>=score>60:
print("中等")
else:
print("需要努力啊!") Twilight6 发表于 2020-7-9 12:45
else 不支持设置条件的哈~
感谢版主!!! weiyideid823 发表于 2020-7-9 13:02
感谢版主!!!
客气,加油吧
页:
[1]