pocketpy/tests/43_closure_ex.py
blueloveTH ea9dabdf99 ...
2024-08-04 18:51:58 +08:00

8 lines
119 B
Python

def f(n):
def g(x):
if x==n:
return n
return g(x+1)
return g(0)
assert f(10) == 10