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

TOP

返回列表