score = int(input('输入分数:'))
if score >= 90:
grade = 'A'
elif score >= 60:
grade = 'B'
else:
grade = 'C'
print (score,'属于',grade)
运行结果为:输入分数: 90