在函数之外,局部作用域引用全局作用域相同的名字空间:模块的名字空间。
Outside functions the local scope references the same namespace as the global scope: the module's namespace.
如果名字是全局的,那么就会被从当前的工作空间删除,但是其他那些说明是全局变量的将会被留下。
If name is global, it is removed from the current workspace, but left accessible to any functions declaring it global.
类本身就可作为全局作用范围变量的名字空间。
Classes are themselves worthy namespaces for scoping globally accessible variables.
类本身就可作为全局作用范围变量的名字空间。
Classes are themselves worthy namespaces for scoping globally accessible variables.
应用推荐