python新增nonlocal关键字时间:2023-03-09 04:38:21 def fa(a): b = 2 def fb(): nonlocal b print(b) return fb c = 2fa(22)()# python作用域:LEGB