利用if判断分数级别
代码如下:
a=input('请输入分数:')
score=int(a)
if score>=90:
print('A')
elif score>=80:
print('B')
elif score>=70:
print('C')
elif score>=60:
print('D')
else:
print('E')
代码如下:
a=input('请输入分数:')
score=int(a)
if score>=90:
print('A')
elif score>=80:
print('B')
elif score>=70:
print('C')
elif score>=60:
print('D')
else:
print('E')