分数级别问题

score = eval(input())

if score <= 100 and score >= 90:

  grade = "A"

elif score <= 90 and score >= 80:

  grade = "B"

elif score <= 80 and score >= 70:

  grade = "C"

elif score <= 70 and score >= 60:

  grade = "D"

elif score <= 60:

  grade = " "

print("输入成绩级别为{}".format(grade))

posted on 2020-05-07 10:46  以晴  阅读(164)  评论(0)    收藏  举报