擅长:python、mysql、java
<p>实际上,CPython 2.x中有类似的字段:</p>
<pre><code>>>> first = lambda x: lambda y: x
>>> f = first(2)
>>> type(f.func_code)
<type 'code'>
>>> map(type, f.func_closure)
[<type 'cell'>]
</code></pre>
<p><strong>编辑:</strong>有关这些构造含义的更多详细信息,请阅读Python参考资料的“用户定义函数”和“代码对象”<a href="http://docs.python.org/reference/datamodel.html" rel="noreferrer">explained in the Data Model</a>一章。在</p>