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


  3. if score>=90 and score<=100:
  4.     print("優等")
  5.    
  6. elif score>80 and score<90:
  7.     print("甲等")

  8. elif score>70 and score<80:
  9.     print("乙等")

  10. elif score>60 and score<70:
  11.     print("丙等")

  12. elif score>0 and score<60:
  13.     print("不及格")

  14. else:
  15.     print("輸入錯誤!!!")
  16.    
複製代碼

TOP

返回列表