@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.10\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2024-08-23 16:12 +0000\n "
14+ "POT-Creation-Date : 2024-08-30 16:14 +0000\n "
1515"PO-Revision-Date : 2022-11-05 17:23+0000\n "
1616"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2024\n "
1717"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -146,7 +146,7 @@ msgid ""
146146"the rest of this section."
147147msgstr ""
148148"在 Python 2.2 中,生成器作为一个可选特性被添加,需要通过 ``from __future__ import generators`` "
149- "指令来启用。 在 2.3 版本中,生成器不再需要特别启用,现在总是存在;这意味着 :keyword:`yield` 现在始终是一个关键字。 "
149+ "指令来启用。 在 2.3 版本中,生成器不再需要特别启用,现在总是存在;这意味着 :keyword:`yield` 现在始终是一个关键字。 "
150150"本节的其余部分是从《Python 2.2的新特性》文档中复制的生成器描述;如果你在 Python 2.2 发布时已经阅读过,可以跳过本节的其余部分。"
151151
152152#: ../../whatsnew/2.3.rst:136
@@ -177,7 +177,7 @@ msgid ""
177177"this is detected by Python's bytecode compiler which compiles the function "
178178"specially as a result."
179179msgstr ""
180- "一个新的关键字 :keyword:`yield` 被引入用于生成器。 任何包含 :keyword:`!yield` 语句的函数都是生成器函数;这由 "
180+ "一个新的关键字 :keyword:`yield` 被引入用于生成器。 任何包含 :keyword:`!yield` 语句的函数都是生成器函数;这由 "
181181"Python 的字节码编译器检测到,并因此对函数进行特殊编译。"
182182
183183#: ../../whatsnew/2.3.rst:156
@@ -529,7 +529,7 @@ msgid ""
529529msgstr ""
530530"Python 2.3 中新增了一个用于编写日志的标准软件包 :mod:`logging`。 "
531531"它为生成日志输出提供了一个强大而灵活的机制,这些输出可以通过各种方式进行过滤和处理。用标准格式编写的配置文件可以用来控制程序的日志行为。 Python "
532- "包含的处理程序可以将日志记录写入标准错误 、文件或套接字,发送到系统日志,甚至通过电子邮件发送到特定地址;当然,您也可以编写自己的处理程序类 。"
532+ "包含的处理器可以将日志记录写入标准错误 、文件或套接字,发送到系统日志,甚至通过电子邮件发送到特定地址;当然,您也可以编写自己的处理器类 。"
533533
534534#: ../../whatsnew/2.3.rst:453
535535msgid ""
@@ -717,8 +717,8 @@ msgid ""
717717"inserting an XML character reference or HTML entity reference into the "
718718"converted string."
719719msgstr ""
720- "将 Unicode 字符串编码为字节字符串时,可能会遇到无法编码的字符。 到目前为止,Python 允许将错误处理指定为 \" strict\" (引发"
721- " :exc:`UnicodeError`)、\" ignore\" (跳过该字符) 或 \" replace\" (在输出字符串中使用问号),其中 "
720+ "将 Unicode 字符串编码为字节字符串时,可能会遇到无法编码的字符。 到目前为止,Python 允许将错误处理指定为 \" strict\" (引发 "
721+ ":exc:`UnicodeError`)、\" ignore\" (跳过该字符) 或 \" replace\" (在输出字符串中使用问号),其中 "
722722"\" strict\" 是默认行为。 可能需要指定对此类错误的其他处理方式,例如在转换后的字符串中插入 XML 字符引用或 HTML 实体引用。"
723723
724724#: ../../whatsnew/2.3.rst:630
@@ -1036,7 +1036,7 @@ msgid ""
10361036"assignment to extended and regular slices. Assignment to a regular slice "
10371037"can be used to change the length of the sequence::"
10381038msgstr ""
1039- "如果您有一个可变序列,如列表或数组,您可以对扩展切片进行赋值或删除 ,但对扩展切片的赋值与对常规切片的赋值有一些区别。对常规片段的赋值可以用来改变序列的长度:"
1039+ "如果你有一个可变序列如列表或数组,你可以对扩展切片进行赋值或删除 ,但对扩展切片的赋值与对常规切片的赋值有一些区别。对常规片段的赋值可以用来改变序列的长度:"
10401040
10411041#: ../../whatsnew/2.3.rst:900
10421042msgid ""
@@ -1047,7 +1047,7 @@ msgstr "扩展分片则没有这种灵活性。 在为扩展分片赋值时,
10471047
10481048#: ../../whatsnew/2.3.rst:917
10491049msgid "Deletion is more straightforward::"
1050- msgstr "删除更为直接 :"
1050+ msgstr "删除操作更为直观 :"
10511051
10521052#: ../../whatsnew/2.3.rst:928
10531053msgid ""
@@ -1057,7 +1057,7 @@ msgstr ""
10571057
10581058#: ../../whatsnew/2.3.rst:934
10591059msgid "Or use slice objects directly in subscripts::"
1060- msgstr "或者直接在下标中使用切分对象 :"
1060+ msgstr "或者直接在下标中使用切片对象 :"
10611061
10621062#: ../../whatsnew/2.3.rst:939
10631063msgid ""
@@ -1538,11 +1538,11 @@ msgstr "(由 Peter Åstrand 贡献。)"
15381538msgid ""
15391539"The :mod:`grp`, :mod:`pwd`, and :mod:`resource` modules now return enhanced "
15401540"tuples::"
1541- msgstr ""
1541+ msgstr "现在 :mod:`grp`, :mod:`pwd` 和 :mod:`resource` 模块将返回加强版的元组:: "
15421542
15431543#: ../../whatsnew/2.3.rst:1304
15441544msgid "The :mod:`gzip` module can now handle files exceeding 2 GiB."
1545- msgstr ""
1545+ msgstr "现在 :mod:`gzip` 模块能够处理超过 2 GiB 的文件。 "
15461546
15471547#: ../../whatsnew/2.3.rst:1306
15481548msgid ""
@@ -2395,26 +2395,28 @@ msgstr "移植到 Python 2.3"
23952395msgid ""
23962396"This section lists previously described changes that may require changes to "
23972397"your code:"
2398- msgstr ""
2398+ msgstr "本节列出了先前描述的可能需要修改你的代码的改变: "
23992399
24002400#: ../../whatsnew/2.3.rst:2020
24012401msgid ""
24022402":keyword:`yield` is now always a keyword; if it's used as a variable name in"
24032403" your code, a different name must be chosen."
2404- msgstr ""
2404+ msgstr "现在 :keyword:`yield` 始终是一个关键字;如果它在你的代码中被用作变量名,则必须选择不同的名称。 "
24052405
24062406#: ../../whatsnew/2.3.rst:2023
24072407msgid ""
24082408"For strings *X* and *Y*, ``X in Y`` now works if *X* is more than one "
24092409"character long."
2410- msgstr ""
2410+ msgstr "对于字符串 *X* 和 *Y*,``X in Y`` 现在当 *X* 长度超过一个字符时也是有效的。 "
24112411
24122412#: ../../whatsnew/2.3.rst:2026
24132413msgid ""
24142414"The :func:`int` type constructor will now return a long integer instead of "
24152415"raising an :exc:`OverflowError` when a string or floating-point number is "
24162416"too large to fit into an integer."
24172417msgstr ""
2418+ "现在 :func:`int` 类型构造器在字符串或浮点数因太大而无法以整数类型来容纳时将返回一个长整数而不是引发 "
2419+ ":exc:`OverflowError`。"
24182420
24192421#: ../../whatsnew/2.3.rst:2030
24202422msgid ""
0 commit comments