4 ms·
No, it definitely captures i Maybe this example where it returns the closures from a function is convincing? def fs(): funcs = list() for
by assbuttbuttass 3y ago
No, it definitely captures i
Maybe this example where it returns the closures from a function is convincing?
def fs():
funcs = list()
for i in range(10):
funcs.append(lambda: print(i))
return funcs
for f in fs():
f()