while True: score=input("请输入你的成绩:") if score=="exit": break score=float(score) if score>90: print("A") elif score>80: print("B") elif score>70: print("C") elif score>60: print("D") else: print("E")
while True: score=input("请输入你的成绩:") if score=="exit": break score=float(score) if score>90: print("A") elif score>80: print("B") elif score>70: print("C") elif score>60: print("D") else: print("E")