Python百分制分数转换为五级制成绩 - 优良中及格不及格
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('不及格')
原文地址: https://www.cveoy.top/t/topic/nRu3 著作权归作者所有。请勿转载和采集!