Python 沒有do-while,所以如果你想做do-while必須自己來:. >>> i = 0 >>> while True: ... print i ... i += 1 ... if i >= 6: ... break ... 0 1 2 3 4 5. python · Help ...
確定! 回上一頁