根据你输入的数据,来进行判断学生的成绩,输入数据函数:input()

socres=int(input("请输入学生的成绩:"))
if 80<socres>90:
print("成绩优秀")
elif 70<socres>80:
print("成绩良好")
elif 60<socres>70:
print("成绩一般")
elif 50<socres>=60:
print("成绩及格")
else:
print("成绩不及格")
posted @ 2020-06-09 14:45  李随随  阅读(1277)  评论(0)    收藏  举报