返回列表 發帖
  1. name=input("請輸入姓名:")
  2. score=int(int("請輸入成績:"))
  3. if  score==100:
  4.     print(f"{name} 你是天才!IQ180")
  5. elif score>=90 and score<=99:
  6.     print(f"{name} 你是甲等")
  7. elif score>=80 and score<=89:
  8.     print(f"{name} 你是乙等")
  9. elif score>=70 and score<=79:
  10.     print(f"{name} 你是丙等")
  11. elif score>=60 and score<=69:
  12.     print(f"{name} 你是丁等")
  13. elif score>=0 and score<=59:
  14.     print(f"{name}!你不及格!滾!")
  15. else:
  16.     print(f"{name}!你的成績輸入錯誤")
複製代碼

TOP

返回列表