15-成绩分类2

score = int(input('分数: '))

if score >= 60 and score < 70:
print('及格')
elif 70 <= score < 80:
print('良')
elif 80 <= score < 90:
print('好')
elif score >= 90:
print('优秀')
else:
print('你要努力了')

输出:

猜你喜欢

转载自www.cnblogs.com/hejianping/p/10857436.html