score = 75 if score >= 9: print("优秀") elif score >= 8: print("良好") elif score >= 6: print("及格") else: print("不及格") print("程序结束")
优秀 程序结束
良好 程序结束
及格 程序结束
不及格 程序结束