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

Skip to content

Commit b7ab36e

Browse files
committed
[po] auto sync bot
1 parent 8761e66 commit b7ab36e

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

reference/simple_stmts.po

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,17 @@ msgid ""
257257
"be different from the length of the assigned sequence, thus changing the "
258258
"length of the target sequence, if the target sequence allows it."
259259
msgstr ""
260+
"如果目标为一个切片:性和痛苦的原型表达式会被求值。 它应当产生一个可变序列对象(例如列表)。 被赋值对象应当是一个相同类型的序列对象。 "
261+
"接下来,下界与上界表达式如果存在的话将被求值;默认值分别为零和序列长度。 上下边界值应当为整数。 如果某一边界为负值,则会加上序列长度。 "
262+
"求出的边界会被裁剪至介于零和序列长度的开区间中。 最后,将要求序列对象以被赋值序列的项替换该切片。 "
263+
"切片的长度可能与被赋值序列的长度不同,这会在目标序列允许的情况下改变目标序列的长度。"
260264

261265
#: ../../reference/simple_stmts.rst:237
262266
msgid ""
263267
"In the current implementation, the syntax for targets is taken to be the "
264268
"same as for expressions, and invalid syntax is rejected during the code "
265269
"generation phase, causing less detailed error messages."
266-
msgstr ""
270+
msgstr "在当前实现中,目标的句法被当作与表达式的句法相同,无效的句法会在代码生成阶段被拒绝,导致不太详细的错误信息。"
267271

268272
#: ../../reference/simple_stmts.rst:241
269273
msgid ""
@@ -273,30 +277,32 @@ msgid ""
273277
"assigned-to variables occur left-to-right, sometimes resulting in confusion."
274278
" For instance, the following program prints ``[0, 2]``::"
275279
msgstr ""
280+
"虽然赋值的定义意味着左手边与右手边的重叠是“同时”进行的(例如 ``a, b = b, a`` 会交换两个变量的值),但在赋值给变量的多项集 *之内* "
281+
"的重叠是从左至右进行的,这有时会令人混淆。 例如,以下程序将会打印出 ``[0, 2]``::"
276282

277283
#: ../../reference/simple_stmts.rst:255
278284
msgid ":pep:`3132` - Extended Iterable Unpacking"
279-
msgstr ""
285+
msgstr ":pep:`3132` - 扩展的可迭代对象拆包"
280286

281287
#: ../../reference/simple_stmts.rst:256
282288
msgid "The specification for the ``*target`` feature."
283-
msgstr ""
289+
msgstr "对 ``*target`` 特性的规范说明。"
284290

285291
#: ../../reference/simple_stmts.rst:262
286292
msgid "Augmented assignment statements"
287-
msgstr ""
293+
msgstr "增强赋值语句"
288294

289295
#: ../../reference/simple_stmts.rst:280
290296
msgid ""
291297
"Augmented assignment is the combination, in a single statement, of a binary "
292298
"operation and an assignment statement:"
293-
msgstr ""
299+
msgstr "增强赋值语句就是在单个语句中将二元运算和赋值语句合为一体:"
294300

295301
#: ../../reference/simple_stmts.rst:289
296302
msgid ""
297303
"(See section :ref:`primaries` for the syntax definitions of the last three "
298304
"symbols.)"
299-
msgstr ""
305+
msgstr "(请参阅 :ref:`primaries` 一节了解最后三种符号的句法定义。)"
300306

301307
#: ../../reference/simple_stmts.rst:292
302308
msgid ""
@@ -306,6 +312,8 @@ msgid ""
306312
"operands, and assigns the result to the original target. The target is only"
307313
" evaluated once."
308314
msgstr ""
315+
"增强赋值语句将对目标和表达式列表求值(与普通赋值语句不同的是,前者不能为可迭代对象拆包),对两个操作数相应类型的赋值执行指定的二元运算,并将结果赋值给原始目标。"
316+
" 目标仅会被求值一次。"
309317

310318
#: ../../reference/simple_stmts.rst:297
311319
msgid ""
@@ -316,6 +324,8 @@ msgid ""
316324
"a new object and assigning that to the target, the old object is modified "
317325
"instead."
318326
msgstr ""
327+
"增强赋值语句例如 ``x += 1`` 可以改写为 ``x = x + 1`` 获得类似但并非完全等价的效果。 在增强赋值的版本中,``x`` "
328+
"仅会被求值一次。 而且,在可能的情况下,实际的运算是 *原地* 执行的,也就是说并不是创建一个新对象并将其赋值给目标,而是直接修改原对象。"
319329

320330
#: ../../reference/simple_stmts.rst:303
321331
msgid ""

0 commit comments

Comments
 (0)