MCPcopy Create free account
hub / github.com/DasyDong/developer-roadmap / lambda_

Function lambda_

code/run_legb.py:12–14  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

10 for i in range(4):
11
12 def lambda_(x):
13 print('Lambda函数中 i {} 命名空间为:{}:'.format(i, locals()))
14 return x*i
15 fun_lambda_list.append(lambda_)
16 print('外层函数 I 为:{} 命名空间为:{}'.format(i, locals()))
17

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected