kopia lustrzana https://github.com/micropython/micropython
10 wiersze
127 B
Python
10 wiersze
127 B
Python
|
# test passing named arg to closed-over function
|
||
|
|
||
|
def f():
|
||
|
x = 1
|
||
|
def g(z):
|
||
|
print(x, z)
|
||
|
return g
|
||
|
|
||
|
f()(z=42)
|