python-13作用域

LEGB规则 python使用Legb的顺序来查找一个符号对应的对象 locals --> enclosing function --> globals --> builtins    dir(__bulitin__)查看内键
相关文章
相关标签/搜索