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

TOP

返回列表