python 函数--递归函数 一、递归函数的定义:在一个函数里面调用函数本身 python限制最大层数:998层 1 def foo(n): 2 print(n) 3 n+=1 4 foo(n) 5 foo(1)