鱼C论坛

 找回密码
 立即注册
查看: 2786|回复: 8

[已解决]Python

[复制链接]
发表于 2020-4-17 11:05:32 | 显示全部楼层
  1. """用Python编写一个成绩评级程序"""

  2. counts=6

  3. while counts>0:
  4.     score=input("请输入你的分数:")
  5.     score=int(score)

  6.     if score==100:
  7.         print("S")
  8.     if 90<=score<100:
  9.         print("A")
  10.     if 80<=score<90:
  11.         print("B")
  12.     if 60<=score<80:
  13.         print("C")
  14.     if score<60:
  15.         print("D")
  16.     if score==e:[color=Olive]?????[/color]
  17.         counts=counts-1

复制代码

e后面是什么啊
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-11-6 03:23

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表