@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version :Python 3.14\n "
1414"Report-Msgid-Bugs-To :\n "
15- "POT-Creation-Date :2025-10-09 14:15 +0000\n "
15+ "POT-Creation-Date :2025-11-03 14:20 +0000\n "
1616"PO-Revision-Date :2025-09-16 00:02+0000\n "
1717"Last-Translator :Freesand Leo <yuqinju@163.com>, 2025\n "
1818"Language-Team :Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -491,6 +491,8 @@ msgid ""
491491"encapsulates the desired precision and rounding characteristics for "
492492"computations::"
493493msgstr ""
494+ ":mod:`decimal` 模块的 :func:`~decimal.localcontext` "
495+ "函数使得保存和恢复当前的十进制数上下文更为容易,它封装了计算所要使用的精度和舍入方式::"
494496
495497#: ../../whatsnew/2.6.rst:314
496498msgid ""
@@ -624,6 +626,7 @@ msgid ""
624626" or rolled back if there's an exception. Here's the basic interface for "
625627":class:`!DatabaseConnection` that I'll assume::"
626628msgstr ""
629+ "如果块中的代码能完美运行则应当提交事务而如果出现异常则应当回滚。 以下是我假设的 :class:`!DatabaseConnection` 基本接口::"
627630
628631#: ../../whatsnew/2.6.rst:383
629632msgid ""
@@ -741,6 +744,11 @@ msgid ""
741744":meth:`~object.__exit__` method. Any exception raised in the block will be "
742745"raised by the :keyword:`!yield` statement."
743746msgstr ""
747+ "该装饰器名为 :func:`~contextlib.contextmanager`,它让你能编写单独的生成器函数而不是定义一个新类。 "
748+ "生成器应当产生恰好一个值。 到 :keyword:`yield` 为止的代码将作为 :meth:`~object.__enter__` "
749+ "方法执行,而产生的值将作为该方法的返回值被绑定到 ':keyword:`with`' 语句的 :keyword:`!as` 子句中的变量,如果有的话。 "
750+ "在 :keyword:`!yield` 之后的代码将在 :meth:`~object.__exit__` 方法中被执行。 在代码块中引发的任何异常都将由"
751+ " :keyword:`!yield` 语句引发。"
744752
745753#: ../../whatsnew/2.6.rst:444
746754msgid ""
@@ -811,6 +819,8 @@ msgid ""
811819"that it can be bound to a variable, and calls the argument's ``.close()`` "
812820"method at the end of the block. ::"
813821msgstr ""
822+ "最后,:func:`~contextlib.closing` 函数返回其参数以便它可被绑定到变量,并在代码块结束时调用参数的 ``.close()`` "
823+ "方法。 ::"
814824
815825#: ../../whatsnew/2.6.rst:477
816826msgid ""
@@ -922,6 +932,9 @@ msgid ""
922932":envvar:`!APPDATA` environment variable. You can also modify the "
923933":file:`site.py` file for your Python installation."
924934msgstr ""
935+ "如果你不喜欢默认的目录,可以通过环境变量来覆盖它。 :envvar:`PYTHONUSERBASE` 设置支持此特性的所有 Python "
936+ "版本所使用的根目录。 在 Windows 上,应用程序专属数据的目录可通过设置 :envvar:`!APPDATA` 环境变量来更改。 你也可以针对你的"
937+ " Python 安装版修改 :file:`site.py` 文件。"
925938
926939#: ../../whatsnew/2.6.rst:545
927940msgid ""
@@ -966,6 +979,12 @@ msgid ""
966979"subprocess is still running and the :meth:`~multiprocessing.Process.join` "
967980"method to wait for the process to exit."
968981msgstr ""
982+ "The :mod:`multiprocessing` 模块起初是作为 :mod:`threading` 模块的精确模拟,使用进程而不是线程。 这个目标在"
983+ " Python 2.6 的开发过程中被放弃了,但模块的总体思路仍然是类似的。 基础的类是 "
984+ ":class:`~multiprocessing.Process`,它接受一个可调用对象和一组参数。 "
985+ ":meth:`~multiprocessing.Process.start` 方法将设置在一个子进程中运行的可调用对象,之后你可以调用 "
986+ ":meth:`~multiprocessing.Process.is_alive` 方法来检查子进程是否仍在运行并调用 "
987+ ":meth:`~multiprocessing.Process.join` 方法来等待进程退出。"
969988
970989#: ../../whatsnew/2.6.rst:579
971990msgid ""
@@ -1062,6 +1081,15 @@ msgid ""
10621081"The following code uses a :class:`~multiprocessing.pool.Pool` to spread "
10631082"requests across 5 worker processes and retrieve a list of results::"
10641083msgstr ""
1084+ "另外两个类,:class:`~multiprocessing.pool.Pool` 和 "
1085+ ":class:`~multiprocessing.Manager`,提供更高层级的接口。 "
1086+ ":class:`~multiprocessing.pool.Pool` 将创建固定数量的工作进程,然后可以通过调用will create a fixed"
1087+ " number of worker processes, and requests can then be distributed to the "
1088+ "workers by calling :meth:`~multiprocessing.pool.Pool.apply` 或 "
1089+ ":meth:`~multiprocessing.pool.Pool.apply_async` 来添加单个请求,通过调用 "
1090+ ":meth:`~multiprocessing.pool.Pool.map` 或 "
1091+ ":meth:`~multiprocessing.pool.Pool.map_async` 来添加多个请求以将请求分发给这些工作进程。 以下代码使用 "
1092+ ":class:`~multiprocessing.pool.Pool` 将请求分散到 5 个工作进程并获取结果列表::"
10651093
10661094#: ../../whatsnew/2.6.rst:635
10671095msgid ""
@@ -1528,7 +1556,7 @@ msgid ""
15281556"Classes and types can define a :meth:`~object.__format__` method to control "
15291557"how they're formatted. It receives a single argument, the format "
15301558"specifier::"
1531- msgstr ""
1559+ msgstr "类和类型可以定义一个 :meth:`~object.__format__` 方法来控制它们的格式化方式。 它接受一个参数,即格式说明符:: "
15321560
15331561#: ../../whatsnew/2.6.rst:838
15341562msgid ""