Naming Loops in Python

前端 未结 4 2012
旧巷少年郎
旧巷少年郎 2020-12-03 17:32

I recently read this question which had a solution about labeling loops in Java.

I am wondering if such a loop-naming system exists in Python. I have been in a situa

4条回答
  •  佛祖请我去吃肉
    2020-12-03 17:55

    Nope.

    Depending on what you are doing, there is good chance you can use something from itertools to flatten your nested for loops into a single for loop.

提交回复
热议问题