|
10 | 10 | # Alpha Du <[email protected]>, 2021 |
11 | 11 | # WH-2099 <[email protected]>, 2022 |
12 | 12 | # Bryan不可思议, 2023 |
13 | | -# 乐成 王, 2023 |
14 | 13 | # Freesand Leo <[email protected]>, 2023 |
| 14 | +# 乐成 王, 2023 |
15 | 15 | # |
16 | 16 | #, fuzzy |
17 | 17 | msgid "" |
18 | 18 | msgstr "" |
19 | 19 | "Project-Id-Version: Python 3.12\n" |
20 | 20 | "Report-Msgid-Bugs-To: \n" |
21 | | -"POT-Creation-Date: 2023-07-21 14:13+0000\n" |
| 21 | +"POT-Creation-Date: 2023-08-25 22:29+0000\n" |
22 | 22 | "PO-Revision-Date: 2021-06-28 00:53+0000\n" |
23 | | -" Last-Translator: Freesand Leo <[email protected]>, 2023\n" |
| 23 | +"Last-Translator: 乐成 王, 2023\n" |
24 | 24 | "Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n" |
25 | 25 | "MIME-Version: 1.0\n" |
26 | 26 | "Content-Type: text/plain; charset=UTF-8\n" |
@@ -325,8 +325,8 @@ msgid "" |
325 | 325 | "doesn't care what the actual value of an enumeration is. But if the value " |
326 | 326 | "*is* important, enumerations can have arbitrary values." |
327 | 327 | msgstr "" |
328 | | -"以上大多数示例都用了整数作枚举值。使用整数确实简短方便(并且由 `Functional API`_ " |
329 | | -"默认提供),但并非必须如此。绝大多数情况下,人们并不关心枚举的实际值是什么。但如果确实有用,枚举可以是任意的值。" |
| 328 | +"以上大多数示例都用了整数作为枚举值。使用整数确实简短方便(并且是 `Functional API`_ " |
| 329 | +"默认提供的值),但并非强制要求。绝大多数情况下,人们并不关心枚举的实际值是什么。但如果值确实重要,可以使用任何值。" |
330 | 330 |
|
331 | 331 | #: ../../howto/enum.rst:393 |
332 | 332 | msgid "" |
@@ -456,13 +456,13 @@ msgstr "不建议为旗标使用基于名称的方式,因为未命名的别名 |
456 | 456 |
|
457 | 457 | #: ../../howto/enum.rst:533 |
458 | 458 | msgid "Functional API" |
459 | | -msgstr "功能性 API" |
| 459 | +msgstr "函数式 API" |
460 | 460 |
|
461 | 461 | #: ../../howto/enum.rst:535 |
462 | 462 | msgid "" |
463 | 463 | "The :class:`Enum` class is callable, providing the following functional " |
464 | 464 | "API::" |
465 | | -msgstr ":class:`Enum` 类属于可调用对象,提供了以下功能性 API::" |
| 465 | +msgstr ":class:`Enum` 类可调用并提供了以下函数式 API:" |
466 | 466 |
|
467 | 467 | #: ../../howto/enum.rst:545 |
468 | 468 | msgid "" |
@@ -502,9 +502,9 @@ msgid "" |
502 | 502 | "function in a separate module, and also may not work on IronPython or " |
503 | 503 | "Jython). The solution is to specify the module name explicitly as follows::" |
504 | 504 | msgstr "" |
505 | | -"对使用功能性 API " |
506 | | -"创建的枚举执行封存可能会很麻烦,因为要使用帧栈的实现细节来尝试会找出枚举是在哪个模块中创建的(例如当你使用了另一个模块中的工具函数就可能失败,在 " |
507 | | -"IronPython 或 Jython 上也可能无效)。 解决办法是像下面这样显式地指定模块名称::" |
| 505 | +"对使用函数式 API " |
| 506 | +"创建的枚举进行封存,可能会很棘手,因为要使用栈帧的实现细节来尝试找出枚举是在哪个模块中创建的(例如当你使用了另一个模块中的实用函数时它就可能失败,在 " |
| 507 | +"IronPython 或 Jython 上也可能无效)。解决办法是像下面这样显式地指定模块名称:" |
508 | 508 |
|
509 | 509 | #: ../../howto/enum.rst:578 |
510 | 510 | msgid "" |
@@ -941,8 +941,8 @@ msgid "" |
941 | 941 | ":class:`auto` to get an appropriate value for an enum member; may be " |
942 | 942 | "overridden" |
943 | 943 | msgstr "" |
944 | | -"``_generate_next_value_`` -- 用于 `Functional API`_ 并通过 :class:`auto` " |
945 | | -"为枚举成员获取适当的值;可被重载" |
| 944 | +"``_generate_next_value_`` -- `Functional API`_ 和 :class:`auto` " |
| 945 | +"用它为枚举成员获取适当的值;可被重写" |
946 | 946 |
|
947 | 947 | #: ../../howto/enum.rst:964 |
948 | 948 | msgid "" |
|
0 commit comments