What determines which variables are enclosed in a closure?

后端 未结 0 1647
慢半拍i
慢半拍i 2021-02-04 03:29

How does Python decide which vars to enclose? You can see when a variable is defined as a name, it is happily closed, but when defined using locals(), it is not clo

相关标签:
回答
  • 消灭零回复
提交回复
热议问题