当你的程序递归的次数超过999次的时候,就会引发RuntimeError: maximum recursion depth exceeded.
解决方法两个:
1、增加系统的递归调用的次数:
import sys
sys.setrecursionlimit(n) n为你想要的递归上限
2、优化代码,减少递归的次数。

相关文章:

  • 2021-11-27
  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2021-05-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2021-11-02
  • 2022-02-25
  • 2021-04-27
  • 2022-12-23
相关资源
相似解决方案