def factorial(x): return x * factorial(x-1) print(factorial(5))
结果:
>>> RuntimeError: maximum recursion depth exceeded >>>
0