課程
/后端開發
/Python
/初識Python
score = 55
if score >=60:
print 'pass'
else:
print 'failed'
2016-12-21
源自:初識Python 5-2
正在回答
親測過是可以的,不然就是你程序設置有問題
HardStruggle 提問者
回車后頂格寫
else要頂格
if score>=60:? ? print('pass')else:? ? print('failed')
score=50
if score>=60:
? ? print 'pass'
? ? print 'failed'
慕前端7382635
慕田峪9994249 回復 HardStruggle 提問者
score = 50
新鮮魚 回復 HardStruggle 提問者
舉報
學python入門視頻教程,讓你快速入門并能編寫簡單的Python程序
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-12-21
親測過是可以的,不然就是你程序設置有問題
2017-05-26
回車后頂格寫
2017-05-19
else要頂格
2017-04-10
if score>=60:
? ? print('pass')
else:
? ? print('failed')
2016-12-21
score=50
if score>=60:
? ? print 'pass'
else:
? ? print 'failed'
2016-12-21
score = 50
if score >=60:
? ? print 'pass'
else:
? ? print 'failed'