一、递归函数的定义:在一个函数里面调用函数本身 python限制最大层数:998层 1 def foo(n): 2 print(n) 3 n+=1 4 foo(n) 5 foo(1) 转载于:https://www.cnblogs.com/liubiaos/p/9285105.html