作用域可以指定成任何名字,但在Web应用程序中提供“session”和“request”便于使用。
Scopes can be given any name, but "session" and "request" are provided out of the box for use in web applications.
如果一个名字声明为全局,那么所有的引用与赋值直接进入包含模块全局名字的中间作用域。
If a name is declared global then all references and assignments go directly to the middle scope containing the module's global names.
通常情况下,局部作用域引用当前函数的局部名字。
Usually the local scope references the local names of the (textually) current function.
应用推荐