@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.10\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2023-12-01 19:01 +0000\n "
14+ "POT-Creation-Date : 2023-12-08 18:45 +0000\n "
1515"PO-Revision-Date : 2022-11-05 17:21+0000\n "
1616"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2023\n "
1717"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -1931,13 +1931,18 @@ msgid ""
19311931"decode trailing lead byte and the number of bytes that have been decoded "
19321932"will be stored in *consumed*."
19331933msgstr ""
1934+ "如果 *consumed* 为 ``NULL``,则行为类似于 :c:func:`PyUnicode_DecodeMBCS`。 如果 "
1935+ "*consumed* 不为 ``NULL``,则 :c:func:`PyUnicode_DecodeMBCSStateful` "
1936+ "将不会解码末尾的不完整字节并且已被解码的字节数将存储在 *consumed* 中。"
19341937
19351938#: ../../c-api/unicode.rst:1551
19361939msgid ""
19371940"Encode a Unicode object using MBCS and return the result as Python bytes "
19381941"object. Error handling is \" strict\" . Return ``NULL`` if an exception was "
19391942"raised by the codec."
19401943msgstr ""
1944+ "使用 MBCS 编码 Unicode 对象并将结果作为 Python 字节串对象返回。 错误处理方式为 \" strict\" 。 "
1945+ "如果编解码器引发了异常则将返回 ``NULL``。"
19411946
19421947#: ../../c-api/unicode.rst:1558
19431948msgid ""
@@ -1962,7 +1967,7 @@ msgstr ""
19621967
19631968#: ../../c-api/unicode.rst:1578
19641969msgid "Methods & Slots"
1965- msgstr ""
1970+ msgstr "方法和槽位 "
19661971
19671972#: ../../c-api/unicode.rst:1584
19681973msgid "Methods and Slot Functions"
@@ -1973,15 +1978,15 @@ msgid ""
19731978"The following APIs are capable of handling Unicode objects and strings on "
19741979"input (we refer to them as strings in the descriptions) and return Unicode "
19751980"objects or integers as appropriate."
1976- msgstr ""
1981+ msgstr "以下 API 可以处理输入的 Unicode 对象和字符串(在描述中我们称其为字符串)并返回适当的 Unicode 对象或整数值。 "
19771982
19781983#: ../../c-api/unicode.rst:1590
19791984msgid "They all return ``NULL`` or ``-1`` if an exception occurs."
1980- msgstr ""
1985+ msgstr "如果发生异常它们都将返回 ``NULL`` 或 ``-1``。 "
19811986
19821987#: ../../c-api/unicode.rst:1595
19831988msgid "Concat two strings giving a new Unicode string."
1984- msgstr ""
1989+ msgstr "拼接两个字符串得到一个新的 Unicode 字符串。 "
19851990
19861991#: ../../c-api/unicode.rst:1600
19871992msgid ""
@@ -1991,6 +1996,8 @@ msgid ""
19911996"negative, no limit is set. Separators are not included in the resulting "
19921997"list."
19931998msgstr ""
1999+ "拆分一个字符串得到一个 Unicode 字符串的列表。 如果 *sep* 为 ``NULL``,则将根据空格来拆分所有子字符串。 "
2000+ "否则,将根据指定的分隔符来拆分。 最多拆分数为 *maxsplit*。 如为负值,则没有限制。 分隔符不包括在结果列表中。"
19942001
19952002#: ../../c-api/unicode.rst:1608
19962003msgid ""
@@ -2003,7 +2010,7 @@ msgstr ""
20032010msgid ""
20042011"Join a sequence of strings using the given *separator* and return the "
20052012"resulting Unicode string."
2006- msgstr ""
2013+ msgstr "使用给定的 *separator* 合并一个字符串列表并返回结果 Unicode 字符串。 "
20072014
20082015#: ../../c-api/unicode.rst:1622
20092016msgid ""
@@ -2051,13 +2058,13 @@ msgstr ""
20512058msgid ""
20522059"Compare two strings and return ``-1``, ``0``, ``1`` for less than, equal, "
20532060"and greater than, respectively."
2054- msgstr ""
2061+ msgstr "比较两个字符串并返回 ``-1``, ``0``, ``1`` 分别表示小于、等于和大于。 "
20552062
20562063#: ../../c-api/unicode.rst:1672
20572064msgid ""
20582065"This function returns ``-1`` upon failure, so one should call "
20592066":c:func:`PyErr_Occurred` to check for errors."
2060- msgstr ""
2067+ msgstr "此函数执行失败时返回 ``-1``,因此应当调用 :c:func:`PyErr_Occurred` 来检查错误。 "
20612068
20622069#: ../../c-api/unicode.rst:1678
20632070msgid ""
@@ -2069,15 +2076,15 @@ msgstr ""
20692076
20702077#: ../../c-api/unicode.rst:1683
20712078msgid "This function does not raise exceptions."
2072- msgstr ""
2079+ msgstr "此函数不会引发异常。 "
20732080
20742081#: ../../c-api/unicode.rst:1688
20752082msgid "Rich compare two Unicode strings and return one of the following:"
20762083msgstr "对两个 Unicode 字符串执行富比较并返回以下值之一:"
20772084
20782085#: ../../c-api/unicode.rst:1690
20792086msgid "``NULL`` in case an exception was raised"
2080- msgstr ""
2087+ msgstr "``NULL`` 用于引发了异常的情况 "
20812088
20822089#: ../../c-api/unicode.rst:1691
20832090msgid ":const:`Py_True` or :const:`Py_False` for successful comparisons"
@@ -2097,7 +2104,7 @@ msgstr ""
20972104msgid ""
20982105"Return a new string object from *format* and *args*; this is analogous to "
20992106"``format % args``."
2100- msgstr ""
2107+ msgstr "根据 *format* 和 *args* 返回一个新的字符串对象;这等同于 ``format % args``。 "
21012108
21022109#: ../../c-api/unicode.rst:1706
21032110msgid ""
@@ -2131,3 +2138,5 @@ msgid ""
21312138"object that has been interned, or a new (\" owned\" ) reference to an earlier "
21322139"interned string object with the same value."
21332140msgstr ""
2141+ ":c:func:`PyUnicode_FromString` 和 :c:func:`PyUnicode_InternInPlace` "
2142+ "的组合操作,返回一个已内部化的新 Unicode 字符串对象,或一个指向具有相同值的原有内部化字符串对象的新的(“拥有的”)引用。"
0 commit comments