【Python
输⼊⼀个百分制成绩的分数,输出对应的五分制成绩A, B, C, D或E。对应关系为:A: 90-100, B: 80- 89, C: 70-79,D: 60-69, E: 0-59 如果输⼊的成绩不是数值,提示"The input score is not a numeric value." 如果输⼊的数值成绩不在0-100范围内,输出具体数值和不在范围信息。例如输⼊120,则提示"The input score 120 is out of range." 如果都正常,则输出成绩和对应的等级。例如输⼊90,则输出 "score 90,grade A" 【样例输⼊】78 【样例输出】score 78,grade C 【样例输⼊】d 【样例输出】The input score is not a numeric value. 【样例输⼊】120 【样例输出】The input score 120 is out of range.
相关知识
【Python】基础
Python(派森)
SKYNE/python
python 玫瑰花程序
花草 python
Python文字花
python玫瑰花代码简单
Python学习手册
python玫瑰花代码讲解
【Python绘画】花朵
网址: 【Python https://m.huajiangbk.com/newsview1151099.html