用Python 程序写出成绩类别的划分要求 85 分及以上的为优秀70 分及以上不到85分的为良好60分及以上不到 70分的为及格60 分以下为不及格。
score = float(input("请输入学生的成绩:")) if score >= 85: print("优秀") elif score >= 70: print("良好") elif score >= 60: print("及格") else: print("不及格")
原文地址: http://www.cveoy.top/t/topic/gfFW 著作权归作者所有。请勿转载和采集!