返回列表 發帖
  1. score=input("請輸入你的成績:")
  2. score=int(score)

  3. if score==100:
  4.     print("優等")
  5.    
  6. elif score>=90 and score<=99:
  7.     print("甲等")
  8.    
  9. elif score>=80 and score<=89:
  10.     print("乙等")
  11.    
  12. elif score>=70 and score<=79:
  13.     print("丙等")
  14.    
  15. elif score>=60 and score<=69:
  16.     print("丁等")
  17.    
  18. else:
  19.     print("輸入錯誤")
複製代碼

TOP

返回列表