1414# Shengjing Zhu <[email protected] >, 20231515# cissoid <[email protected] >, 20231616# Xu Siyuan, 2023
17- # Jiuh- star <[email protected] >, 202317+ # Jiuh. star <[email protected] >, 20231818# ppcfish <[email protected] >, 20231919# Dai Xu <[email protected] >, 20232020# Freesand Leo <[email protected] >, 2024@@ -24,7 +24,7 @@ msgid ""
2424msgstr ""
2525"Project-Id-Version : Python 3.12\n "
2626"Report-Msgid-Bugs-To : \n "
27- "POT-Creation-Date : 2024-01-05 14:14 +0000\n "
27+ "POT-Creation-Date : 2024-04-14 22:56 +0000\n "
2828"PO-Revision-Date : 2021-06-28 01:19+0000\n "
2929"
Last-Translator :
Freesand Leo <[email protected] >, 2024\n "
3030"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -228,7 +228,7 @@ msgstr ":keyword:`!try` 语句"
228228msgid ""
229229"The :keyword:`!try` statement specifies exception handlers and/or cleanup "
230230"code for a group of statements:"
231- msgstr ":keyword:`!try` 语句可为一组语句指定异常处理句柄和 /或清理代码:"
231+ msgstr ":keyword:`!try` 语句可为一组语句指定异常处理器和 /或清理代码:"
232232
233233#: ../../reference/compound_stmts.rst:231
234234msgid ""
@@ -259,8 +259,8 @@ msgid ""
259259"object, or a tuple containing an item that is the class or a non-virtual "
260260"base class of the exception object."
261261msgstr ""
262- ":keyword:`!except` 子句指定一个或多个异常处理句柄 。 当 :keyword:`try` "
263- "子句中无异常发生时,将不会有任何异常处理句柄被执行 。 当 :keyword:`!try` 子句代码块中发生异常时,将启动对异常处理句柄的搜索 。 "
262+ ":keyword:`!except` 子句指定一个或多个异常处理器 。 当 :keyword:`try` "
263+ "子句中无异常发生时,将不会有任何异常处理器被执行 。 当 :keyword:`!try` 子句代码块中发生异常时,将启动对异常处理器的搜索 。 "
264264"此搜索会逐一检查 :keyword:`!except` 子句直至找到与该异常相匹配的子句为止。 如果存在无表达式的 :keyword:`!except`"
265265" 子句,则它必须是最后一个;它将匹配任何异常。 对于带有表达式的 :keyword:`!except` "
266266"子句,该表达式会被求值,如果结果对象与发生的异常“兼容”则该子句将匹配该异常。 如果一个对象是该异常对象所属的类或是其 :term:`非虚拟基类 "
@@ -271,7 +271,7 @@ msgid ""
271271"If no :keyword:`!except` clause matches the exception, the search for an "
272272"exception handler continues in the surrounding code and on the invocation "
273273"stack. [#]_"
274- msgstr "如果没有 :keyword:`!except` 子句与异常相匹配,则会在周边代码和发起调用栈上继续搜索异常处理句柄 。 [#]_"
274+ msgstr "如果没有 :keyword:`!except` 子句与异常相匹配,则会在周边代码和发起调用栈上继续搜索异常处理器 。 [#]_"
275275
276276#: ../../reference/compound_stmts.rst:260
277277msgid ""
@@ -282,8 +282,8 @@ msgid ""
282282"the exception)."
283283msgstr ""
284284"如果在对 :keyword:`!except` "
285- "子句头部的表达式求值时引发了异常,则对处理句柄的原始搜索会被取消并在周边代码和调用栈上启动对新异常的搜索 (它会被视作是整个 :keyword:`try`"
286- " 语句所引发的异常)。"
285+ "子句头部的表达式求值时引发了异常,则对处理器的原始搜索会被取消并在周边代码和调用栈上启动对新异常的搜索 (它会被视作是整个 :keyword:`try` "
286+ "语句所引发的异常)。"
287287
288288#: ../../reference/compound_stmts.rst:268
289289msgid ""
@@ -300,8 +300,8 @@ msgstr ""
300300"当代到一个匹配的 :keyword:`!except` 子句时,异常将被赋值给该 :keyword:`!except` 子句在 "
301301":keyword:`!as` 关键字之后指定的目标,如果存在此关键字的话,并且该 :keyword:`!except` 子句的代码块将被执行。 所有 "
302302":keyword:`!except` 子句都必须有可执行的代码块。 当到达此类代码块的末尾时,通常会转到整个 :keyword:`try` "
303- "语句之后继续执行。 (这意味着如果对同一异常存在两个嵌套的处理句柄,并且异常发生在内层处理句柄的 :keyword:`!try` "
304- "子句中,则外层处理句柄将不会处理该异常 。)"
303+ "语句之后继续执行。 (这意味着如果对同一异常存在两个嵌套的处理器,并且异常发生在内层处理器的 :keyword:`!try` "
304+ "子句中,则外层处理器将不会处理该异常 。)"
305305
306306#: ../../reference/compound_stmts.rst:279
307307msgid ""
@@ -333,7 +333,7 @@ msgid ""
333333" is reset to its previous value::"
334334msgstr ""
335335"在 :keyword:`!except` 子句的代码块被执行之前,异常将保存在 :mod:`sys` 模块中,在那里它可以从 "
336- ":keyword:`!except` 子句的语句体内部通过 :func:`sys.exception` 被访问。 当离开一个异常处理句柄时 ,保存在 "
336+ ":keyword:`!except` 子句的语句体内部通过 :func:`sys.exception` 被访问。 当离开一个异常处理器时 ,保存在 "
337337":mod:`sys` 模块中的异常将被重置为在此之前的值::"
338338
339339#: ../../reference/compound_stmts.rst:334
@@ -421,7 +421,7 @@ msgid ""
421421":keyword:`return`, :keyword:`break` or :keyword:`continue` statement, the "
422422"saved exception is discarded::"
423423msgstr ""
424- "如果存在 :keyword:`!finally`,它将指定一个‘清理’处理句柄 。 :keyword:`try` 子句会被执行,包括任何 "
424+ "如果存在 :keyword:`!finally`,它将指定一个‘清理’处理器 。 :keyword:`try` 子句会被执行,包括任何 "
425425":keyword:`except` 和 :keyword:`else` 子句。 如果在这些子句中发生任何未处理的异常,该异常会被临时保存。 "
426426":keyword:`!finally` 子句将被执行。 如果存在被保存的异常,它会在 :keyword:`!finally` 子句的末尾被重新引发。 "
427427"如果 :keyword:`!finally` 子句引发了另一个异常,被保存的异常会被设为新异常的上下文。 如果 :keyword:`!finally` "
@@ -2300,19 +2300,11 @@ msgstr "compound"
23002300
23012301#: ../../reference/compound_stmts.rst:7 ../../reference/compound_stmts.rst:86
23022302#: ../../reference/compound_stmts.rst:111
2303- #: ../../reference/compound_stmts.rst:111
2304- #: ../../reference/compound_stmts.rst:129
23052303#: ../../reference/compound_stmts.rst:129
23062304#: ../../reference/compound_stmts.rst:144
2307- #: ../../reference/compound_stmts.rst:144
2308- #: ../../reference/compound_stmts.rst:169
23092305#: ../../reference/compound_stmts.rst:169
23102306#: ../../reference/compound_stmts.rst:207
23112307#: ../../reference/compound_stmts.rst:389
2312- #: ../../reference/compound_stmts.rst:389
2313- #: ../../reference/compound_stmts.rst:389
2314- #: ../../reference/compound_stmts.rst:436
2315- #: ../../reference/compound_stmts.rst:436
23162308#: ../../reference/compound_stmts.rst:436
23172309#: ../../reference/compound_stmts.rst:470
23182310#: ../../reference/compound_stmts.rst:587
@@ -2361,22 +2353,15 @@ msgstr "else"
23612353msgid "if"
23622354msgstr "if"
23632355
2364- #: ../../reference/compound_stmts.rst:86 ../../reference/compound_stmts.rst:86
2356+ #: ../../reference/compound_stmts.rst:86
23652357#: ../../reference/compound_stmts.rst:111
23662358#: ../../reference/compound_stmts.rst:144
2367- #: ../../reference/compound_stmts.rst:144
2368- #: ../../reference/compound_stmts.rst:207
2369- #: ../../reference/compound_stmts.rst:207
2370- #: ../../reference/compound_stmts.rst:207
23712359#: ../../reference/compound_stmts.rst:207
23722360#: ../../reference/compound_stmts.rst:328
23732361#: ../../reference/compound_stmts.rst:389
23742362#: ../../reference/compound_stmts.rst:407
23752363#: ../../reference/compound_stmts.rst:470
23762364#: ../../reference/compound_stmts.rst:587
2377- #: ../../reference/compound_stmts.rst:587
2378- #: ../../reference/compound_stmts.rst:587
2379- #: ../../reference/compound_stmts.rst:1500
23802365#: ../../reference/compound_stmts.rst:1500
23812366msgid "keyword"
23822367msgstr "关键字"
@@ -2450,7 +2435,6 @@ msgstr "list"
24502435#: ../../reference/compound_stmts.rst:144
24512436#: ../../reference/compound_stmts.rst:299
24522437#: ../../reference/compound_stmts.rst:1194
2453- #: ../../reference/compound_stmts.rst:1194
24542438#: ../../reference/compound_stmts.rst:1380
24552439msgid "object"
24562440msgstr "object -- 对象"
@@ -2483,8 +2467,6 @@ msgstr "finally"
24832467#: ../../reference/compound_stmts.rst:207
24842468#: ../../reference/compound_stmts.rst:266
24852469#: ../../reference/compound_stmts.rst:470
2486- #: ../../reference/compound_stmts.rst:470
2487- #: ../../reference/compound_stmts.rst:587
24882470#: ../../reference/compound_stmts.rst:587
24892471msgid "as"
24902472msgstr "as"
@@ -2518,7 +2500,6 @@ msgstr "return"
25182500msgid "with"
25192501msgstr "with"
25202502
2521- #: ../../reference/compound_stmts.rst:470
25222503#: ../../reference/compound_stmts.rst:470
25232504msgid "with statement"
25242505msgstr "with 语句"
@@ -2529,12 +2510,10 @@ msgstr "with 语句"
25292510msgid ", (comma)"
25302511msgstr ", (逗号)"
25312512
2532- #: ../../reference/compound_stmts.rst:587
25332513#: ../../reference/compound_stmts.rst:587
25342514msgid "match"
25352515msgstr "match"
25362516
2537- #: ../../reference/compound_stmts.rst:587
25382517#: ../../reference/compound_stmts.rst:587
25392518msgid "case"
25402519msgstr "case"
@@ -2576,9 +2555,6 @@ msgstr "parameter -- 形参"
25762555#: ../../reference/compound_stmts.rst:1194
25772556#: ../../reference/compound_stmts.rst:1235
25782557#: ../../reference/compound_stmts.rst:1271
2579- #: ../../reference/compound_stmts.rst:1271
2580- #: ../../reference/compound_stmts.rst:1300
2581- #: ../../reference/compound_stmts.rst:1300
25822558#: ../../reference/compound_stmts.rst:1300
25832559msgid "function definition"
25842560msgstr "函数定义"
@@ -2587,9 +2563,6 @@ msgstr "函数定义"
25872563msgid "def"
25882564msgstr "def"
25892565
2590- #: ../../reference/compound_stmts.rst:1194
2591- #: ../../reference/compound_stmts.rst:1194
2592- #: ../../reference/compound_stmts.rst:1194
25932566#: ../../reference/compound_stmts.rst:1194
25942567#: ../../reference/compound_stmts.rst:1321
25952568msgid "function"
@@ -2600,16 +2573,11 @@ msgstr "function -- 函数"
26002573msgid "definition"
26012574msgstr "定义"
26022575
2603- #: ../../reference/compound_stmts.rst:1194
2604- #: ../../reference/compound_stmts.rst:1194
2605- #: ../../reference/compound_stmts.rst:1194
26062576#: ../../reference/compound_stmts.rst:1194
26072577#: ../../reference/compound_stmts.rst:1380
2608- #: ../../reference/compound_stmts.rst:1380
26092578msgid "name"
26102579msgstr "name"
26112580
2612- #: ../../reference/compound_stmts.rst:1194
26132581#: ../../reference/compound_stmts.rst:1194
26142582#: ../../reference/compound_stmts.rst:1380
26152583msgid "binding"
@@ -2669,7 +2637,6 @@ msgstr "annotations"
26692637msgid "->"
26702638msgstr "->"
26712639
2672- #: ../../reference/compound_stmts.rst:1321
26732640#: ../../reference/compound_stmts.rst:1321
26742641msgid "function annotations"
26752642msgstr "函数标注"
@@ -2682,9 +2649,6 @@ msgstr "lambda"
26822649msgid "expression"
26832650msgstr "expression -- 表达式"
26842651
2685- #: ../../reference/compound_stmts.rst:1380
2686- #: ../../reference/compound_stmts.rst:1380
2687- #: ../../reference/compound_stmts.rst:1380
26882652#: ../../reference/compound_stmts.rst:1380
26892653msgid "class"
26902654msgstr "class"
0 commit comments