Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb8febb9

Browse files
[po] auto sync
1 parent25cc297 commitb8febb9

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed

‎.stat.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation":"99.80%","updated_at":"2025-11-05T02:45:10Z"}
1+
{"translation":"99.81%","updated_at":"2025-11-05T06:18:13Z"}

‎whatsnew/2.6.po‎

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
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::"
493493
msgstr""
494+
":mod:`decimal` 模块的 :func:`~decimal.localcontext` "
495+
"函数使得保存和恢复当前的十进制数上下文更为容易,它封装了计算所要使用的精度和舍入方式::"
494496

495497
#:../../whatsnew/2.6.rst:314
496498
msgid""
@@ -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::"
626628
msgstr""
629+
"如果块中的代码能完美运行则应当提交事务而如果出现异常则应当回滚。 以下是我假设的 :class:`!DatabaseConnection` 基本接口::"
627630

628631
#:../../whatsnew/2.6.rst:383
629632
msgid""
@@ -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."
743746
msgstr""
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
746754
msgid""
@@ -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. ::"
813821
msgstr""
822+
"最后,:func:`~contextlib.closing` 函数返回其参数以便它可被绑定到变量,并在代码块结束时调用参数的 ``.close()`` "
823+
"方法。 ::"
814824

815825
#:../../whatsnew/2.6.rst:477
816826
msgid""
@@ -922,6 +932,9 @@ msgid ""
922932
":envvar:`!APPDATA` environment variable. You can also modify the "
923933
":file:`site.py` file for your Python installation."
924934
msgstr""
935+
"如果你不喜欢默认的目录,可以通过环境变量来覆盖它。 :envvar:`PYTHONUSERBASE` 设置支持此特性的所有 Python "
936+
"版本所使用的根目录。 在 Windows 上,应用程序专属数据的目录可通过设置 :envvar:`!APPDATA` 环境变量来更改。 你也可以针对你的"
937+
" Python 安装版修改 :file:`site.py` 文件。"
925938

926939
#:../../whatsnew/2.6.rst:545
927940
msgid""
@@ -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."
968981
msgstr""
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
971990
msgid""
@@ -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::"
10641083
msgstr""
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
10671095
msgid""
@@ -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
15341562
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp