返回列表 發帖
  1. s=float(input("報上你的成績: "))
  2. if(s>=90 and s<=100):
  3.     print("優等")
  4. elif(s>=80 and s<=89):
  5.     print("甲等")
  6. elif(s>=70 and s<=79):
  7.     print("乙等")
  8. elif(s>=60 and s<=69):
  9.     print("丙等")
  10. elif(s>=0 and s<=59):
  11.     print("不及格")
  12. else:
  13.     print("亂打")
複製代碼
Ivy

TOP

返回列表