python3.7-初学篇-14

score = int (input ('请输入一个分数:'))
if 100 >= score >= 90:
  print ('A')
elif 90 > score >= 80:
  print ('B')
elif 80 > score >= 60:
  print ('C')
elif 60 > score >= 0:
  print ('D')
else:
  print ('输入错误!')

posted @ 2018-12-11 21:27  九头龙鳌龟  阅读(103)  评论(0编辑  收藏  举报