码迷,mamicode.com
首页 > 编程语言 > 详细

python3.7-初学篇-13

时间:2018-12-12 00:23:20      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:put   inpu   python3   input   print   python3.7   core   pytho   分数   

score = int (input (‘请教您的分数:‘))
if 100 >= score >= 90:
  print (‘A‘)
else:
  if 90 > score >= 80:
    print (‘B‘)
  else:
    if 80 > score >= 60:
      print (‘C‘)
    else:
      if 60 > score >= 0:
        print (‘D‘)
      else:
        print (‘输入错误!‘)

python3.7-初学篇-13

标签:put   inpu   python3   input   print   python3.7   core   pytho   分数   

原文地址:https://www.cnblogs.com/liangbannerhulk/p/10105358.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!