syntaxError: 'continue' not properly in loop

前端 未结 2 1378
执念已碎
执念已碎 2021-02-13 01:00

I have been struggling with this error for a while now and there seems to be different opinions regarding why the interpreter complains about the \'continue\'. So I would like t

2条回答
  •  不要未来只要你来
    2021-02-13 01:15

    The problem might be in the way you are using continue

    continue may only occur syntactically nested in a for or while loop, but not nested in a function or class definition or finally statement within that loop.6.1It continues with the next cycle of the nearest enclosing loop.

提交回复
热议问题