Python 代码:根据成绩数值获取等级
程序如下:
score = int(input('请输入成绩:'))
if score < 60: print('等级为D') elif score < 70: print('等级为C') elif score < 85: print('等级为B') else: print('等级为A')
原文地址: https://www.cveoy.top/t/topic/oH77 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
程序如下:
score = int(input('请输入成绩:'))
if score < 60: print('等级为D') elif score < 70: print('等级为C') elif score < 85: print('等级为B') else: print('等级为A')
原文地址: https://www.cveoy.top/t/topic/oH77 著作权归作者所有。请勿转载和采集!