55#
66# Translators:
77# Ming Jia <[email protected] >, 20178- # cdarlint <[email protected] >, 201798# Pandaaaa906 <[email protected] >, 2019109#
1110#, fuzzy
@@ -29,14 +28,15 @@ msgstr "列表对象"
2928
3029#: ../../c-api/list.rst:13
3130msgid "This subtype of :c:type:`PyObject` represents a Python list object."
32- msgstr "这个类型, :c:type:`PyObject`,代表这一个Python列表对象 。"
31+ msgstr "这个C类型 :c:type:`PyObject`的子类型代表一个Python列表对象 。"
3332
3433#: ../../c-api/list.rst:18
3534msgid ""
3635"This instance of :c:type:`PyTypeObject` represents the Python list type. "
3736"This is the same object as :class:`list` in the Python layer."
3837msgstr ""
39- "这个实例,:c:type:`PyTypeObject`,代表Python列表类型。这个就和 :class:`list` 一样在Python层"
38+ "这是个属于 :c:type:`PyTypeObject` 的代表Python列表类型的实例。在Python层面和类型 :class:`list` "
39+ "是同一个对象。"
4040
4141#: ../../c-api/list.rst:24
4242msgid ""
@@ -61,16 +61,18 @@ msgid ""
6161":c:func:`PySequence_SetItem` or expose the object to Python code before "
6262"setting all items to a real object with :c:func:`PyList_SetItem`."
6363msgstr ""
64+ "当 *len* 大于零时,被返回的列表对象项目被设成 ``NULL``。因此你不能用类似C函数 :c:func:`PySequence_SetItem`"
65+ " 的抽象API或者用C函数 :c:func:`PyList_SetItem`将所有项目设置成真实对象前对Python代码公开这个对象。"
6466
6567#: ../../c-api/list.rst:50
6668msgid ""
6769"Return the length of the list object in *list*; this is equivalent to "
6870"``len(list)`` on a list object."
69- msgstr ""
71+ msgstr "返回 *list* 中列表对象的长度;这等于在列表对象调用 ``len(list)`` 。 "
7072
7173#: ../../c-api/list.rst:56
7274msgid "Macro form of :c:func:`PyList_Size` without error checking."
73- msgstr ""
75+ msgstr "宏版本的C函数 :c:func:`PyList_Size` ,没有错误检测。 "
7476
7577#: ../../c-api/list.rst:61
7678msgid ""
@@ -79,16 +81,18 @@ msgid ""
7981"supported. If *index* is out of bounds, return *NULL* and set an "
8082":exc:`IndexError` exception."
8183msgstr ""
84+ "返回 *list* 指向的列表中位置 *index* 的对象。这个位置必需是正数,不支持倒叙索引。如果 *index* 超出边界,返回 *NULL* "
85+ "并设置 :exc:`IndexError` 错误。"
8286
8387#: ../../c-api/list.rst:69
8488msgid "Macro form of :c:func:`PyList_GetItem` without error checking."
85- msgstr ""
89+ msgstr "宏版本的C函数 :c:func:`PyList_GetItem` ,没有错误检测。 "
8690
8791#: ../../c-api/list.rst:74
8892msgid ""
8993"Set the item at index *index* in list to *item*. Return ``0`` on success or"
9094" ``-1`` on failure."
91- msgstr ""
95+ msgstr "将列表中索引为 *index* 的对象设为 *item*。成功时返回 ``0`` ,失败时返回 ``-1`` 。 "
9296
9397#: ../../c-api/list.rst:79
9498msgid ""
0 commit comments