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

TOP

返回列表