原文:python 利用條件運算符:學習成績>=90分用A表示,60-89分之間的用B表示,60分以下的用C表示。

一 參考解法: score int input 輸入分數: print A if score gt else B if score gt else C 二 參考解法: while : score int input 輸入分數: mark , , result A , B , C for i in range , : if score gt mark i : print d屬於: s score,r ...

2018-06-25 12:59 0 3268 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM