score = int(input("请输入百分制分数:")) if score >= 90: print("优") elif score >= 80 and score < 90: print("良") elif score >= 70 and score < 80: print("中") elif score >= 60 and score < 70: print("及格") else: print("不及格")

任务一:输入一个百分制分数输出其对应的五级制成绩包括:优90分以上含90、良80-90分含80不含90、中70-80分含70不含80、及格60-70分含60不含70、不及格60分以下不含6020分要求:使用多分支条件语句实现。

原文地址: https://www.cveoy.top/t/topic/ep1b 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录