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

TOP

返回列表