赞
踩
- score = int(input("请输入你的成绩:"))
- if score >= 90:
- print('优秀')
- if score >=95:
- print('非常好,继续保持')
- else:
- print('危险')
- elif score >= 80:
- print('良好')
- if score >=85:
- print('也不错')
- elif score >= 83:
- print('不错')
- else:
- print('保持住')
- elif score >= 70:
- print('中等')
- elif score >= 60:
- print('及格')
- else:
- print('不及格')
- if score <= 50:
- print('太拉跨了')
- else:
- print('还要努力')
- print('程序结束')
自己的感悟
- num = 1
- sum = 0
- while num <= 100:
- sum = sum +num
- # num += 1
- num = num + 1
- print('1加到100的总和为:' + str(sum))
count = int(input('请输
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。