python interpretor automaticlly restarting without returning answer

后端 未结 1 1408
北恋
北恋 2021-01-17 01:10

Is there any reason why python interpretor will automatically restart when a recursive function is called? I\'m programming a quick sort algorithm, and trying to sort a an l

相关标签:
1条回答
  • 2021-01-17 02:01

    The most likely you got this message in IDLE. In IDLE, the "===RESTART===" is simply IDLE flushing its memory of the previous code.

    UPDATE

    If you entered IDLE by right-clicking on a program and choosing "Edit with IDLE," then these ====RESTART==== messages do not appear; IDLE is running in a slightly different mode. But everything still works.

    Read here more about IDLE

    0 讨论(0)
提交回复
热议问题