@@ -123,13 +123,17 @@ msgid ""
123123"``0`` if successful; return ``-1`` and set an exception if unsuccessful. "
124124"Analogous to ``list.insert(index, item)``."
125125msgstr ""
126+ "将条目 *item* 插入到列表 *list* 索引号 *index* 之前的位置。 如果成功将返回 ``0``;如果不成功则返回 ``-1`` "
127+ "并设置一个异常。 相当于 ``list.insert(index, item)``。"
126128
127129#: ../../c-api/list.rst:105
128130msgid ""
129131"Append the object *item* at the end of list *list*. Return ``0`` if "
130132"successful; return ``-1`` and set an exception if unsuccessful. Analogous "
131133"to ``list.append(item)``."
132134msgstr ""
135+ "将对象 *item* 添加到列表 *list* 的末尾。 如果成功将返回 ``0``;如果不成功则返回 ``-1`` 并设置一个异常。 相当于 "
136+ "``list.append(item)``。"
133137
134138#: ../../c-api/list.rst:112
135139msgid ""
@@ -138,6 +142,8 @@ msgid ""
138142"Analogous to ``list[low:high]``. Negative indices, as when slicing from "
139143"Python, are not supported."
140144msgstr ""
145+ "返回一个对象列表,包含 *list* 中位于 *low* 与 *high* *之间* 的对象。 如果不成功则返回 *NULL* 并设置一个异常。 相当于"
146+ " ``list[low:high]``。 在 Python 中进行切片时可使用的负索引号在此则不被支持。"
141147
142148#: ../../c-api/list.rst:120
143149msgid ""
@@ -147,24 +153,28 @@ msgid ""
147153"Return ``0`` on success, ``-1`` on failure. Negative indices, as when "
148154"slicing from Python, are not supported."
149155msgstr ""
156+ "将 *list* 中 *low* 与 *high* 之间的切片设为 *itemlist* 的内容。 相当于 ``list[low:high] = "
157+ "itemlist``。 *itemlist* 可以为 *NULL*,表示赋值为一个空列表(删除切片)。 成功时返回 ``0``,失败时返回 "
158+ "``-1``。 在 Python 中进行切片时可使用的负索引号在此则不被支持。"
150159
151160#: ../../c-api/list.rst:129
152161msgid ""
153162"Sort the items of *list* in place. Return ``0`` on success, ``-1`` on "
154163"failure. This is equivalent to ``list.sort()``."
155- msgstr ""
164+ msgstr "对 *list* 中的条目进行原地排序。 成功时返回 ``0``,失败时返回 ``-1``。 这等价于 ``list.sort()``。 "
156165
157166#: ../../c-api/list.rst:135
158167msgid ""
159168"Reverse the items of *list* in place. Return ``0`` on success, ``-1`` on "
160169"failure. This is the equivalent of ``list.reverse()``."
161170msgstr ""
171+ "对 *list* 中的条目进行原地反转。 成功时返回 ``0``,失败时返回 ``-1``。 这等价于 ``list.reverse()``。"
162172
163173#: ../../c-api/list.rst:143
164174msgid ""
165175"Return a new tuple object containing the contents of *list*; equivalent to "
166176"``tuple(list)``."
167- msgstr ""
177+ msgstr "返回一个新的元组对象,其中包含 *list* 的内容;等价于 ``tuple(list)``。 "
168178
169179#: ../../c-api/list.rst:149
170180msgid "Clear the free list. Return the total number of freed items."
0 commit comments