@@ -1095,10 +1095,13 @@ msgid ""
10951095"have a shorter development/debug cycle than compiled ones, though their "
10961096"programs generally also run more slowly. See also :term:`interactive`."
10971097msgstr ""
1098+ "Python "
1099+ "一是种解释型语言,与之相对的是编译型语言,虽然两者的区别由于字节码编译器的存在而会有所模糊。这意味着源文件可以直接运行而不必显式地创建可执行文件再运行。解释型语言通常具有比编译型语言更短的开发/调试周期,但是其程序往往运行得更慢。参见"
1100+ " :term:`interactive`。"
10981101
10991102#: ../../glossary.rst:551
11001103msgid "interpreter shutdown"
1101- msgstr ""
1104+ msgstr "interpreter shutdown -- 解释器关闭 "
11021105
11031106#: ../../glossary.rst:553
11041107msgid ""
@@ -1111,12 +1114,15 @@ msgid ""
11111114"resources it relies on may not function anymore (common examples are library"
11121115" modules or the warnings machinery)."
11131116msgstr ""
1117+ "当被要求关闭时,Python 解释器将进入一个特殊运行阶段并逐步释放所有已分配资源,例如模块和各种关键内部结构等。它还会多次调用 "
1118+ ":term:`垃圾回收器 <garbage "
1119+ "collection>`。这会触发用户定义析构器或弱引用回调中的代码执行。在关闭阶段执行的代码可能会遇到各种异常,因为其所依赖的资源已不再有效(常见的例子有库模块或警告机制等)。"
11141120
11151121#: ../../glossary.rst:562
11161122msgid ""
11171123"The main reason for interpreter shutdown is that the ``__main__`` module or "
11181124"the script being run has finished executing."
1119- msgstr ""
1125+ msgstr "解释器需要关闭的主要原因有 ``__main__`` 模块或所运行的脚本已完成执行。 "
11201126
11211127#: ../../glossary.rst:564
11221128msgid "iterable"
@@ -1131,6 +1137,10 @@ msgid ""
11311137"with an :meth:`__iter__` method or with a :meth:`__getitem__` method that "
11321138"implements :term:`Sequence` semantics."
11331139msgstr ""
1140+ "能够逐一返回其成员项的对象。可迭代对象的例子包括所有序列类型(例如 :class:`list`、:class:`str` 和 "
1141+ ":class:`tuple`)以及某些非序列类型例如 :class:`dict`、:term:`文件对象 <file object>` 以及定义了 "
1142+ ":meth:`__iter__` 方法或是实现了 :term:`Sequence` 语义的 :meth:`__getitem__` "
1143+ "方法的任意自定义类对象。"
11341144
11351145#: ../../glossary.rst:573
11361146msgid ""
0 commit comments