猿问

Python里怎么实现do while?

刚学编程的小白提问
Python里怎么实现do while?

慕容3067478
浏览 1445回答 4
4回答

红颜莎娜

while True: stuff() if fail_condition: break

慕村9548890

do() while condtion: do()

牧羊人nacy

filter

当年话下

python中没有do...while 但可以模拟: #python while True: #dosomething if fail_condition: break
随时随地看视频慕课网APP

相关分类

Python
我要回答