= 90 and chengji <=100: print("你的成绩等级是S")elif chengji >=80 and chengji <=89: print("你的成绩等级是A")elif chengji >=70 and chengji <=79: print("你的成绩等级是B")elif chengji >=60 and chengji._多分支结构算成绩">
赞
踩
- chengji=int(input("请输入你的成绩:"))
- if chengji >= 90 and chengji <=100:
- print("你的成绩等级是S")
- elif chengji >=80 and chengji <=89:
- print("你的成绩等级是A")
- elif chengji >=70 and chengji <=79:
- print("你的成绩等级是B")
- elif chengji >=60 and chengji <=69:
- print("你的成绩等级是C")
- elif chengji >=0 and chengji <=59:
- print("你的成绩等级是E")
- else:
- print("对不起,你输入的成绩不在有效范围")
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。