score = int(input("请输入分数:")) if score >= 0: if score < 60: print("不及格") elif score < 70: print("及格") elif score < 80: print("良好") elif score <= 100: print("优秀") else: print("分数不合理")