Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6be4632

Browse files
committed
[po] auto sync bot
1 parent b22d170 commit 6be4632

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

tutorial/datastructures.po

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ msgstr "返回元素 *x* 在列表中出现的次数。"
114114
msgid ""
115115
"Sort the items of the list in place (the arguments can be used for sort "
116116
"customization, see :func:`sorted` for their explanation)."
117-
msgstr "对列表中的项目进行排序(参数可用于自定义排序,详情请参阅 :func:`sorted` )。"
117+
msgstr "对列表中的元素进行排序(参数可用于自定义排序,详情请参阅 :func:`sorted` )。"
118118

119119
#: ../../tutorial/datastructures.rst:91
120120
msgid "Reverse the elements of the list in place."
@@ -150,8 +150,8 @@ msgid ""
150150
"item from the top of the stack, use :meth:`pop` without an explicit index. "
151151
"For example::"
152152
msgstr ""
153-
"列表方法使得列表作为堆栈非常容易,最后一个插入,最先取出(“后进先出”)。要添加一个项目到堆栈的顶端,使用 :meth:`append` "
154-
"。要从堆栈顶部检索一个项目,请使用 :meth:`pop` ,不用指定索引。例如 ::"
153+
"列表方法使得列表作为堆栈非常容易,最后一个插入,最先取出(“后进先出”)。要添加一个元素到堆栈的顶端,使用 :meth:`append` "
154+
"。要从堆栈顶部取出一个元素,使用 :meth:`pop` ,不用指定索引。例如 ::"
155155

156156
#: ../../tutorial/datastructures.rst:162
157157
msgid "Using Lists as Queues"
@@ -165,9 +165,9 @@ msgid ""
165165
"list are fast, doing inserts or pops from the beginning of a list is slow "
166166
"(because all of the other elements have to be shifted by one)."
167167
msgstr ""
168-
"列表也有可能被用来作队列——先添加的元素被最先取出 "
168+
"列表也可以用作队列,其中先添加的元素被最先取出 "
169169
"(“先进先出”);然而列表用作这个目的相当低效。因为在列表的末尾添加和弹出元素非常快,但是在列表的开头插入或弹出元素却很慢 "
170-
"(因为所有的其他元素必须向右或向左移一位)。"
170+
"(因为所有的其他元素都必须移动一位)。"
171171

172172
#: ../../tutorial/datastructures.rst:172
173173
msgid ""
@@ -190,22 +190,22 @@ msgstr ""
190190

191191
#: ../../tutorial/datastructures.rst:197
192192
msgid "For example, assume we want to create a list of squares, like::"
193-
msgstr "例如,建设我们想创建一个 squares 列表,像这样 ::"
193+
msgstr "例如,假设我们想创建一个平方列表,像这样 ::"
194194

195195
#: ../../tutorial/datastructures.rst:206
196196
msgid ""
197197
"Note that this creates (or overwrites) a variable named ``x`` that still "
198198
"exists after the loop completes. We can calculate the list of squares "
199199
"without any side effects using::"
200-
msgstr "注意这里创建(或被重写)的名为 ``x`` 的变量在for循环后仍然存在。我们可以计算squares的值而不会产生任何副作用 ::"
200+
msgstr "注意这里创建(或被重写)的名为 ``x`` 的变量在for循环后仍然存在。我们可以计算平方列表的值而不会产生任何副作用 ::"
201201

202202
#: ../../tutorial/datastructures.rst:212
203203
msgid "or, equivalently::"
204204
msgstr "或者,等价于 ::"
205205

206206
#: ../../tutorial/datastructures.rst:216
207207
msgid "which is more concise and readable."
208-
msgstr "上面这种写法更加简洁易读"
208+
msgstr "上面这种写法更加简洁易读"
209209

210210
#: ../../tutorial/datastructures.rst:218
211211
msgid ""
@@ -216,13 +216,13 @@ msgid ""
216216
":keyword:`if` clauses which follow it. For example, this listcomp combines "
217217
"the elements of two lists if they are not equal::"
218218
msgstr ""
219-
"列表推导式由一对方括号包含着以下内容构成:一个表达式,后面跟着一个 :keyword:`for` 从句,再然后是0或多个 :keyword:`for` "
220-
"或 :keyword:`if` 从句。其结果将会是一个新列表,由表达式依据其后面的 :keyword:`for` 和 :keyword:`if` "
219+
"列表推导式由一对方括号包含着以下内容构成:一个表达式,后面跟着一个 :keyword:`for` 子句,再然后是0或多个 :keyword:`for` "
220+
"或 :keyword:`if` 子句。其结果将会是一个新列表,由表达式依据其后面的 :keyword:`for` 和 :keyword:`if` "
221221
"从句计算得出的结果来构成。举例来说,如下列表推导式结合两个列表中的不相等的元素 ::"
222222

223223
#: ../../tutorial/datastructures.rst:228
224224
msgid "and it's equivalent to::"
225-
msgstr "而这等价于 ::"
225+
msgstr "而它等价于 ::"
226226

227227
#: ../../tutorial/datastructures.rst:239
228228
msgid ""
@@ -239,7 +239,7 @@ msgstr "如果表达式是一个元组(例如上面的 ``(x, y)``),那么
239239
#: ../../tutorial/datastructures.rst:273
240240
msgid ""
241241
"List comprehensions can contain complex expressions and nested functions::"
242-
msgstr "列表推导可以使用复杂的表达式和嵌套函数 ::"
242+
msgstr "列表推导式可以使用复杂的表达式和嵌套函数 ::"
243243

244244
#: ../../tutorial/datastructures.rst:280
245245
msgid "Nested List Comprehensions"

0 commit comments

Comments
 (0)