 |
 |
 |
Python 语言参考手册Python Reference Manual |
 |
 |
8.2 文件输入 File input
All input read from non-interactive files has the same form:
所有从非交互文件的输入读取具有相同的形式:
-
This syntax is used in the following situations:
这个语法用于以下的情况:
- when parsing a complete Python program (from a file or from a string);
当解析一个完整Python程序时(从文件或字符串中);
- when parsing a module;
当解析一个模块时;
- when parsing a string passed to the exec statement;
当解析一个传给exec语句的字符串时;
 |
 |
 |
Python 语言参考手册Python Reference Manual |
 |
 |
版本 2.3.3, 文件最后更新时间 译文最后修改: 二月 18, 2004.