一、递归函数

  定义:在一个函数里调用这个函数本身

  递归的最大深度:997

def func(n):
    print(n)
    n += 1
    func(n)    
func(1)
测试递归最大深度

相关文章: