代码如下:
score= int(input("请输入成绩:"))
if score>=90:
print("优")
elif score>=80:
print("良")
elif score>=70:
print("中")
elif score>=60:
print("及格")
else :
print("不及格")
结果如下:
代码如下:
score= int(input("请输入成绩:"))
if score>=90:
print("优")
elif score>=80:
print("良")
elif score>=70:
print("中")
elif score>=60:
print("及格")
else :
print("不及格")
结果如下: