安全问答

安全问答是一个知识全球问答,包含丰富的问答知识

首页 常规 游戏 娱乐 科技 程序员

python编程写一个90分以上为A80~89分为B70~79分为C60~69分为D60分以下为E的成绩等级

  • 日期: 2025-07-04
  • 标签: 社会

score = float(input("请输入成绩: "))

if score >= 90: grade = 'A' elif score >= 80: grade = 'B' elif score >= 70: grade = 'C' elif score >= 60: grade = 'D' else: grade = 'E'

print("成绩等级为:", grade)

python编程写一个90分以上为A80~89分为B70~79分为C60~69分为D60分以下为E的成绩等级

原文地址: https://www.cveoy.top/t/topic/hJTU 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录

  • 上一篇: Apache Tomcat 注入漏洞CVE-2022-45143对windows系统的影响
  • 下一篇: This command is not supported in the prepared statement protocol yet

© 2019 • 2025 - 安全问答 站长邮箱:wxgpt@qq.com    ICP备案/许可证号:豫ICP备2024104334号-2