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

TOP

返回列表