【pyhton】【转】修改递归次数时间:2023-03-08 16:56:20 import sys sys.setrecursionlimit(1500) # set the maximum depth as 1500 def recursion(n): if(n <= 0): return print n recursion(n - 1) if __name__ == "__main__": recursion(1200)http://www.pythontip.com/blog/post/5518/