-
-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathlist.po
More file actions
197 lines (170 loc) · 8.39 KB
/
list.po
File metadata and controls
197 lines (170 loc) · 8.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2025, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# python-doc bot, 2025
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-03 15:28+0000\n"
"PO-Revision-Date: 2025-09-22 16:49+0000\n"
"Last-Translator: python-doc bot, 2025\n"
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: ../../c-api/list.rst:6
msgid "List Objects"
msgstr "列表对象"
#: ../../c-api/list.rst:13
msgid "This subtype of :c:type:`PyObject` represents a Python list object."
msgstr "这个C类型 :c:type:`PyObject` 的子类型代表一个Python列表对象。"
#: ../../c-api/list.rst:18
msgid ""
"This instance of :c:type:`PyTypeObject` represents the Python list type. "
"This is the same object as :class:`list` in the Python layer."
msgstr ""
"这是个属于 :c:type:`PyTypeObject` 的代表Python列表类型的实例。在Python层面和类型 :class:`list` "
"是同一个对象。"
#: ../../c-api/list.rst:24
msgid ""
"Return true if *p* is a list object or an instance of a subtype of the list "
"type. This function always succeeds."
msgstr "如果 *p* 是一个 list 对象或者 list 类型的子类型的实例则返回真值。 此函数总是会成功执行。"
#: ../../c-api/list.rst:30
msgid ""
"Return true if *p* is a list object, but not an instance of a subtype of the"
" list type. This function always succeeds."
msgstr "如果 *p* 是一个 list 对象但不是 list 类型的子类型的实例则返回真值。 此函数总是会成功执行。"
#: ../../c-api/list.rst:36
msgid "Return a new list of length *len* on success, or ``NULL`` on failure."
msgstr "成功时返回一个长度为 *len* 的新列表,失败时返回 ``NULL``。"
#: ../../c-api/list.rst:40
msgid ""
"If *len* is greater than zero, the returned list object's items are set to "
"``NULL``. Thus you cannot use abstract API functions such as "
":c:func:`PySequence_SetItem` or expose the object to Python code before "
"setting all items to a real object with :c:func:`PyList_SetItem`."
msgstr ""
"当 *len* 大于零时,被返回的列表对象项目被设成 ``NULL``。因此你不能用类似C函数 :c:func:`PySequence_SetItem`"
" 的抽象API或者用C函数 :c:func:`PyList_SetItem` 将所有项目设置成真实对象前对Python代码公开这个对象。"
#: ../../c-api/list.rst:50
msgid ""
"Return the length of the list object in *list*; this is equivalent to "
"``len(list)`` on a list object."
msgstr "返回 *list* 中列表对象的长度;这等于在列表对象调用 ``len(list)`` 。"
#: ../../c-api/list.rst:56
msgid "Similar to :c:func:`PyList_Size`, but without error checking."
msgstr "类似于 :c:func:`PyList_Size`,但是不带错误检测。"
#: ../../c-api/list.rst:61
msgid ""
"Return the object at position *index* in the list pointed to by *list*. The"
" position must be non-negative; indexing from the end of the list is not "
"supported. If *index* is out of bounds (<0 or >=len(list)), return ``NULL``"
" and set an :exc:`IndexError` exception."
msgstr ""
"返回 *list* 所指向列表中 *index* 位置上的对象。 位置值必须为非负数;不支持从列表末尾进行索引。 如果 *index* 超出边界 (<0"
" or >=len(list)),则返回 ``NULL`` 并设置 :exc:`IndexError` 异常。"
#: ../../c-api/list.rst:69
msgid "Similar to :c:func:`PyList_GetItem`, but without error checking."
msgstr "类似于 :c:func:`PyList_GetItem`,但是不带错误检测。"
#: ../../c-api/list.rst:74
msgid ""
"Set the item at index *index* in list to *item*. Return ``0`` on success. "
"If *index* is out of bounds, return ``-1`` and set an :exc:`IndexError` "
"exception."
msgstr ""
"将列表中索引为 *index* 的项设为 *item*。 成功时返回 ``0``。 如果 *index* 超出范围则返回 ``-1`` 并设定 "
":exc:`IndexError` 异常。"
#: ../../c-api/list.rst:80
msgid ""
"This function \"steals\" a reference to *item* and discards a reference to "
"an item already in the list at the affected position."
msgstr "此函数会“偷走”一个对 *item* 的引用并丢弃一个对列表中受影响位置上的已有条目的引用。"
#: ../../c-api/list.rst:86
msgid ""
"Macro form of :c:func:`PyList_SetItem` without error checking. This is "
"normally only used to fill in new lists where there is no previous content."
msgstr "不带错误检测的宏版本 :c:func:`PyList_SetItem`。 这通常只被用于新列表中之前没有内容的位置进行填充。"
#: ../../c-api/list.rst:91
msgid ""
"This macro \"steals\" a reference to *item*, and, unlike "
":c:func:`PyList_SetItem`, does *not* discard a reference to any item that is"
" being replaced; any reference in *list* at position *i* will be leaked."
msgstr ""
"该宏会“偷走”一个对 *item* 的引用,但与 :c:func:`PyList_SetItem` 不同的是它 *不会* 丢弃对任何被替换条目的引用;在"
" *list* 的 *i* 位置上的任何引用都将被泄露。"
#: ../../c-api/list.rst:99
msgid ""
"Insert the item *item* into list *list* in front of index *index*. Return "
"``0`` if successful; return ``-1`` and set an exception if unsuccessful. "
"Analogous to ``list.insert(index, item)``."
msgstr ""
"将条目 *item* 插入到列表 *list* 索引号 *index* 之前的位置。 如果成功将返回 ``0``;如果不成功则返回 ``-1`` "
"并设置一个异常。 相当于 ``list.insert(index, item)``。"
#: ../../c-api/list.rst:106
msgid ""
"Append the object *item* at the end of list *list*. Return ``0`` if "
"successful; return ``-1`` and set an exception if unsuccessful. Analogous "
"to ``list.append(item)``."
msgstr ""
"将对象 *item* 添加到列表 *list* 的末尾。 如果成功将返回 ``0``;如果不成功则返回 ``-1`` 并设置一个异常。 相当于 "
"``list.append(item)``。"
#: ../../c-api/list.rst:113
msgid ""
"Return a list of the objects in *list* containing the objects *between* "
"*low* and *high*. Return ``NULL`` and set an exception if unsuccessful. "
"Analogous to ``list[low:high]``. Indexing from the end of the list is not "
"supported."
msgstr ""
"返回一个对象列表,包含 *list* 当中位于 *low* 和 *high* *之间* 的对象。 如果不成功则返回 ``NULL`` 并设置异常。 "
"相当于 ``list[low:high]``。 不支持从列表末尾进行索引。"
#: ../../c-api/list.rst:120
msgid ""
"Set the slice of *list* between *low* and *high* to the contents of "
"*itemlist*. Analogous to ``list[low:high] = itemlist``. The *itemlist* may "
"be ``NULL``, indicating the assignment of an empty list (slice deletion). "
"Return ``0`` on success, ``-1`` on failure. Indexing from the end of the "
"list is not supported."
msgstr ""
"将 *list* 当中 *low* 与 *high* 之间的切片设为 *itemlist* 的内容。 相当于 ``list[low:high] = "
"itemlist``。 *itemlist* 可以为 ``NULL``,表示赋值为一个空列表(删除切片)。 成功时返回 ``0``,失败时返回 "
"``-1``。 这里不支持从列表末尾进行索引。"
#: ../../c-api/list.rst:129
msgid ""
"Sort the items of *list* in place. Return ``0`` on success, ``-1`` on "
"failure. This is equivalent to ``list.sort()``."
msgstr "对 *list* 中的条目进行原地排序。 成功时返回 ``0``,失败时返回 ``-1``。 这等价于 ``list.sort()``。"
#: ../../c-api/list.rst:135
msgid ""
"Reverse the items of *list* in place. Return ``0`` on success, ``-1`` on "
"failure. This is the equivalent of ``list.reverse()``."
msgstr ""
"对 *list* 中的条目进行原地反转。 成功时返回 ``0``,失败时返回 ``-1``。 这等价于 ``list.reverse()``。"
#: ../../c-api/list.rst:143
msgid ""
"Return a new tuple object containing the contents of *list*; equivalent to "
"``tuple(list)``."
msgstr "返回一个新的元组对象,其中包含 *list* 的内容;等价于 ``tuple(list)``。"
#: ../../c-api/list.rst:8
msgid "object"
msgstr "object -- 对象"
#: ../../c-api/list.rst:8
msgid "list"
msgstr "list"
#: ../../c-api/list.rst:48 ../../c-api/list.rst:141
msgid "built-in function"
msgstr "内置函数"
#: ../../c-api/list.rst:48
msgid "len"
msgstr "len"
#: ../../c-api/list.rst:141
msgid "tuple"
msgstr "元组"