#ScoreConvert.py(成绩转换等级)
while True:
ScoreStr=float(input('请输入你的成绩:(输入000结束转换)'))
if ScoreStr !=000:
if ScoreStr >=90 and ScoreStr<=100:
print('您的成绩等级为:优秀')
elif ScoreStr >=80 and ScoreStr<90:
print('您的成绩等级为:良好')
elif ScoreStr >=70 and ScoreStr<80:
print('您的成绩等级为:中等')
elif ScoreStr >=60 and ScoreStr<70:
print('您的成绩等级为:及格')
elif ScoreStr <60 and ScoreStr>=0:
print('您的成绩等级为:不及格')
else:
print('您的输入有误,请重新输入')
elif ScoreStr==000:
print('程序结束')
break
else:
print('您的输入有误,请重新输入')