@@ -174,14 +174,16 @@ msgid ""
174174"terminated by a :keyword:`break` statement. This is exemplified by the "
175175"following loop, which searches for prime numbers::"
176176msgstr ""
177+ "循环语句可能有一个 ``else`` 子句;当循环遍历完列表(使用 :keyword:`for` )或者当条件变为假(使用 "
178+ ":keyword:`while` )时它会被执行,但是不会在循环被 :keyword:`break` "
179+ "语句打断时执行。这可以通过下面搜索素数的循环的例子来说明 ::"
177180
178181#: ../../tutorial/controlflow.rst:187
179182msgid ""
180183"(Yes, this is the correct code. Look closely: the ``else`` clause belongs "
181184"to the :keyword:`for` loop, **not** the :keyword:`if` statement.)"
182185msgstr ""
183- "(是的,这是正确的代码。仔细看: ``else`` 子句属于 :keyword:`for` 循环, **不属于** :keyword:`if` "
184- "语句.)"
186+ "(是的,这是正确的代码。仔细看: ``else`` 子句属于 :keyword:`for` 循环, **不属于** :keyword:`if` 语句。)"
185187
186188#: ../../tutorial/controlflow.rst:190
187189msgid ""
@@ -192,12 +194,15 @@ msgid ""
192194"``break`` occurs. For more on the :keyword:`try` statement and exceptions, "
193195"see :ref:`tut-handling`."
194196msgstr ""
197+ "当和循环一起使用时,``else`` 子句与 :keyword:`try` 语句中的 ``else`` 子句的共同点多于 :keyword:`if` "
198+ "语句中的子句::keyword:`try` 语句中的 ``else`` 子句在没有异常发生时执行,而循环中的 ``else`` 子句在没有 "
199+ "``break`` 发生时执行。有关 :keyword:`try` 和异常的更多信息,请参阅 :ref:`tut-handling` 。"
195200
196201#: ../../tutorial/controlflow.rst:197
197202msgid ""
198203"The :keyword:`continue` statement, also borrowed from C, continues with the "
199204"next iteration of the loop::"
200- msgstr ":keyword:`语句,也是从C语言借来的 ,表示继续下一次迭代: ::"
205+ msgstr ":keyword:` 语句,也是借鉴于C语言 ,表示继续下一次迭代::"
201206
202207#: ../../tutorial/controlflow.rst:217
203208msgid ":keyword:`pass` Statements"
0 commit comments