ChuannBlog

2.8 流程控制

if
elif
elif

else

score = input('>>: ')
score = int(score)

if score >= 90:
    print('A')
elif score >= 80:
    print('B')
elif score >= 70:
    print('C')
elif score >= 60:
    print('D')
else:
    print('E')
print('====>')