。。。。。。
score = 85
?if score>=60: ??
?print 'passed' elif score>=80: ??
?print 'good' elif score>=90: ? ?
print 'excellent' else: ? ?
print 'failed'
?這段執行居然對了 我沒看到輸出 是輸出了兩個結果嗎? 如果是一個話 有問題啊感覺
score = 85
?if score>=60: ??
?print 'passed' elif score>=80: ??
?print 'good' elif score>=90: ? ?
print 'excellent' else: ? ?
print 'failed'
?這段執行居然對了 我沒看到輸出 是輸出了兩個結果嗎? 如果是一個話 有問題啊感覺
2016-12-30
舉報
2016-12-30
輸出一個 "goog"。 特別注意:?這一系列條件判斷會從上到下依次判斷,如果某個判斷為 True,執行完對應的代碼塊,后面的條件判斷就直接忽略,不再執行了。
2017-01-08
其實如果是你自己寫的那段代碼的話輸出的一個--passed