- score=int(input("把你的成績喊出來!: "))
- print(score)
- if(score>=90 and score<=100):
- print("優等")
- elif(score>=80 and score<=90):
- print("甲等")
- elif(score>=70 and score<=80):
- print("乙等")
- elif(score>=60 and score<=70):
- print("丙等")
- elif(score>=0 and score<=60):
- print("不及格")
- else:
- print("輸入錯誤!")
複製代碼 |