摘要: 昨天学习了python的静态嵌套域,但是网上差了很多资料看了很多博客,也没有弄清除,最后还是得看PEP227.在PEP227中原文是这样说的:The Python 2.0 definition specifies exactly three namespaces to check for each name -- the local namespace, the global namespace, and the builtin namespace. According to this definition,if a function A is defined within a functi. 阅读全文
posted @ 2011-09-14 11:04 wait123 阅读(4894) 评论(0) 推荐(0)