@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.12\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2024-08-30 14:55 +0000\n "
14+ "POT-Creation-Date : 2024-08-31 11:30 +0000\n "
1515"PO-Revision-Date : 2024-05-11 00:32+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 "
@@ -53,7 +53,7 @@ msgstr "如果 *p* 是一个 tuple 对象但不是 tuple 类型的子类型的
5353msgid ""
5454"Return a new tuple object of size *len*, or ``NULL`` with an exception set "
5555"on failure."
56- msgstr ""
56+ msgstr "返回一个长度为 *len* 的新元组对象,或者失败时返回 ``NULL`` 并设置一个异常。 "
5757
5858#: ../../c-api/tuple.rst:42
5959msgid ""
@@ -62,16 +62,18 @@ msgid ""
6262"pointing to Python objects. ``PyTuple_Pack(2, a, b)`` is equivalent to "
6363"``Py_BuildValue(\" (OO)\" , a, b)``."
6464msgstr ""
65+ "返回一个长度为 *n* 的新元组对象,或者失败时返回 ``NULL`` 并设置一个异常。 元组值初始化为指向 Python 对象的后续 *n* 个 C "
66+ "参数。 ``PyTuple_Pack(2, a, b)`` 等价于 ``Py_BuildValue(\" (OO)\" , a, b)``。"
6567
6668#: ../../c-api/tuple.rst:50
6769msgid ""
6870"Take a pointer to a tuple object, and return the size of that tuple. On "
6971"error, return ``-1`` and with an exception set."
70- msgstr ""
72+ msgstr "接受一个指向元组对象的指针,并返回该元组的大小。 失败时,返回 ``-1`` 并设置一个异常。 "
7173
7274#: ../../c-api/tuple.rst:56
7375msgid "Like :c:func:`PyTuple_Size`, but without error checking."
74- msgstr ""
76+ msgstr "类似于 :c:func:`PyTuple_Size`,但是不带错误检测。 "
7577
7678#: ../../c-api/tuple.rst:61
7779msgid ""
@@ -101,13 +103,13 @@ msgstr "类似于 :c:func:`PyTuple_GetItem`,但不检查其参数。"
101103msgid ""
102104"Return the slice of the tuple pointed to by *p* between *low* and *high*, or"
103105" ``NULL`` with an exception set on failure."
104- msgstr ""
106+ msgstr "返回一个 *p* 指向的元组的 *low* 和 *high* 之间的切片,或者失败时返回 ``NULL`` 并设置一个异常。 "
105107
106108#: ../../c-api/tuple.rst:81
107109msgid ""
108110"This is the equivalent of the Python expression ``p[low:high]``. Indexing "
109111"from the end of the tuple is not supported."
110- msgstr ""
112+ msgstr "这等价于 Python 表达式 ``p[low:high]``。 不支持从元组末尾进行索引。 "
111113
112114#: ../../c-api/tuple.rst:87
113115msgid ""
@@ -185,7 +187,7 @@ msgstr ""
185187
186188#: ../../c-api/tuple.rst:139 ../../c-api/tuple.rst:207
187189msgid "Return ``NULL`` with an exception set on failure."
188- msgstr ""
190+ msgstr "失败时返回 ``NULL`` 并设置一个异常。 "
189191
190192#: ../../c-api/tuple.rst:144
191193msgid "Initializes a struct sequence type *type* from *desc* in place."
@@ -196,6 +198,7 @@ msgid ""
196198"Like :c:func:`PyStructSequence_InitType`, but returns ``0`` on success and "
197199"``-1`` with an exception set on failure."
198200msgstr ""
201+ "类似于 :c:func:`PyStructSequence_InitType`,但成功时返回 ``0`` 而失败时返回 ``-1`` 并设置一个异常。"
199202
200203#: ../../c-api/tuple.rst:157
201204msgid "Contains the meta information of a struct sequence type to create."
0 commit comments