File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,12 +50,16 @@ msgid ""
5050":mod:`__main__`. The latter is used to provide the local and global "
5151"namespace for execution of the complete program."
5252msgstr ""
53+ "虽然语言规范描述不必规定如何发起调用语言解释器,但对完整的 Python 程序加以说明还是很有用的。 一个完整的 Python "
54+ "程序会在最小初始化环境中被执行:所有内置和标准模块均为可用,但均处于未初始化状态,只有 :mod:`sys` (各种系统服务), "
55+ ":mod:`builtins` (内置函数、异常以及 ``None``) 和 :mod:`__main__` 除外。 "
56+ "最后一个模块用于为完整程序的执行提供局部和全局命名空间。"
5357
5458#: ../../reference/toplevel_components.rst:36
5559msgid ""
5660"The syntax for a complete Python program is that for file input, described "
5761"in the next section."
58- msgstr ""
62+ msgstr "适用于一个完整 Python 程序的语法即下节所描述的文件输入。 "
5963
6064#: ../../reference/toplevel_components.rst:43
6165msgid ""
@@ -65,6 +69,8 @@ msgid ""
6569"identical to that of a complete program; each statement is executed in the "
6670"namespace of :mod:`__main__`."
6771msgstr ""
72+ "解释器也可以通过交互模式被发起调用;在此情况下,它并不读取和执行一个完整程序,而是每次读取和执行一条语句(可能为复合语句)。 "
73+ "此时的初始环境与一个完整程序的相同;每条语句会在 :mod:`__main__` 的命名空间中被执行。"
6874
6975#: ../../reference/toplevel_components.rst:55
7076msgid ""
You can’t perform that action at this time.
0 commit comments