a: (a := lambda: print("hello"))() = 1
[f() for i in range(10) for f in [lambda: print(i)]]
i = 2
def f() -> (g := lambda: print(i)):
i = 1
g()
f()
def f(_: (x := lambda func: lambda arg: func(arg + 1)) = 1):
@x
def a(b):
print(b)
a(1)
f()
Recommended Posts