【pyhton】【转】修改递归次数

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/
posted @ 2016-11-04 19:38  GiraffaMPRO  阅读(180)  评论(0编辑  收藏  举报