剛學(xué)編程的小白提問
Python里怎么實(shí)現(xiàn)do while?
4 回答

當(dāng)年話下
TA貢獻(xiàn)1890條經(jīng)驗 獲得超9個贊
python中沒有do...while
但可以模擬:
#python
while True:
#dosomething
if fail_condition:
break
添加回答
舉報
0/150
提交
取消