May 10th Thursday (五月 十日 木曜日)
来源:互联网 发布:淘宝全球买手招募 编辑:程序博客网 时间:2024/04/28 10:28
Each module has its own private symbol table, which is used as the global symbol table by
all functions defined in the module. Thus, the author of a module can use global variables
in the module without worrying about accidental clashes with a user's global variables. On
the other hand, if you know what you are doing you can touch a module's global variables with
the same notation used to refer to its functions, modname.itemname.
Modules can import other modules. It is customary but not required to place all import
statements at the beginning of a module (or script, for that matter). The imported module names
are placed in the importing module's global symbol table.
When a module named spam is imported, the interpreter searches for a file named spam.py in
the current directory, and then in the list of directories specified by the environment variable
PYTHONPATH. This has the same syntax as the shell variable PATH, that is, a list of directory names.
When PYTHONPATH is not set, or when the file is not found there, the search continues in an installation
-dependent default path; on Unix, this is usually .:/usr/local/lib/python.
Actually, modules are searched in the list of directories given by the variable sys.path which is
initialized from the directory containing the input script (or the current directory), PYTHONPATH and
the installation-dependent default.
- May 10th Thursday (五月 十日 木曜日)
- May 24th Thursday (五月 二十四日 木曜日)
- 2008 May 15th Thursday (五月 十五日 木曜日)
- May 14th Thursday (五月 十四日 木曜日)
- May 21th Thursday (五月 二十一日 木曜日)
- May 17th Thursday (五月 十七日 木曜日)
- May 7th Thursday (五月 七日 木曜日)
- May 31th Thursday (五月 三十一日 木曜日)
- 2008 May 8th Thursday (五月 八日 木曜日)
- 2008 May 22th Thursday (五月 二十二日 木曜日)
- 2008 January 10th Thursday (一月 十日 木曜日)
- 2008 July 10th Thursday (七月 十日 木曜日)
- May 11th Friday (五月 十一日 木曜日)
- May 28th Tuesday (五月 二十八日 木曜日)
- May 14th Monday (五月 十四日 月曜日)
- May 15th Tuesday (五月 十五日 火曜日)
- May 18th Friday (五月 十八日 金曜日)
- May 21th Monday (五月 二十一日 月曜日)
- Red5作做服务器的玩家移动信息同步例子(网游基础)
- May 8th Tuesday (五月 八日 火曜日)
- XML简介
- 我的CSDN 2007 MVB(最有价值BLOG)奖杯碎了,心疼!
- May 9th Wednesday (五月 九日 水曜日)
- May 10th Thursday (五月 十日 木曜日)
- May 11th Friday (五月 十一日 木曜日)
- ASP.NET 2.0 制作自定义Button控件
- java 反射
- 校园网图书馆资源使用问题
- SQL Server 索引结构及其使用(三)
- asp.net生成缩略图及给原始图加水印
- May 14th Monday (五月 十四日 月曜日)
- 发送广播消息zz