11# SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2018 , Python Software Foundation
2+ # Copyright (C) 2001-2019 , Python Software Foundation
33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
66# Translators:
77# ww song <[email protected] >, 20188- # Larry wang <[email protected] >, 20188+ # Larry Wang <[email protected] >, 201899# Woostundy <[email protected] >, 201810- # Freesand Leo <[email protected] >, 20181110# Junkai Shao <[email protected] >, 201811+ # Freesand Leo <[email protected] >, 20191212#
1313#, fuzzy
1414msgid ""
1515msgstr ""
1616"Project-Id-Version : Python 3.7\n "
1717"Report-Msgid-Bugs-To : \n "
18- "POT-Creation-Date : 2018-12-20 10:06 +0900\n "
18+ "POT-Creation-Date : 2019-01-01 10:14 +0900\n "
1919"PO-Revision-Date : 2017-02-16 23:40+0000\n "
20- "Last-Translator : Junkai Shao <skaifun.dev@gmail .com>, 2018 \n "
20+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2019 \n "
2121"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2222"MIME-Version : 1.0\n "
2323"Content-Type : text/plain; charset=UTF-8\n "
@@ -172,6 +172,9 @@ msgid ""
172172"not in other handlers of the same :keyword:`!try` statement. An except "
173173"clause may name multiple exceptions as a parenthesized tuple, for example::"
174174msgstr ""
175+ "一个 :keyword:`try` 语句可能有多个 except 子句,以指定不同异常的处理程序。 最多会执行一个处理程序。 处理程序只处理相应的 "
176+ "try 子句中发生的异常,而不处理同一 :keyword:`!try` 语句内其他处理程序中的异常。 一个 except "
177+ "子句可以将多个异常命名为带括号的元组,例如::"
175178
176179#: ../../tutorial/errors.rst:123
177180msgid ""
@@ -220,6 +223,8 @@ msgid ""
220223"exception that wasn't raised by the code being protected by the "
221224":keyword:`!try` ... :keyword:`!except` statement."
222225msgstr ""
226+ "使用 :keyword:`!else` 子句比向 :keyword:`try` 子句添加额外的代码要好,因为它避免了意外捕获由 "
227+ ":keyword:`!try` ... :keyword:`!except` 语句保护的代码未引发的异常。"
223228
224229#: ../../tutorial/errors.rst:188
225230msgid ""
@@ -344,6 +349,11 @@ msgid ""
344349" left via a :keyword:`break`, :keyword:`continue` or :keyword:`return` "
345350"statement. A more complicated example::"
346351msgstr ""
352+ "*finally 子句* 总会在离开 :keyword:`try` 语句前被执行,无论是否发生了异常。 当在 :keyword:`!try` "
353+ "子句中发生了异常且尚未被 :keyword:`except` 子句处理(或者它发生在 :keyword:`!except` 或 "
354+ ":keyword:`!else` 子句中)时,它将在 :keyword:`finally` 子句执行后被重新抛出。 当 :keyword:`!try` "
355+ "语句的任何其他子句通过 :keyword:`break`, :keyword:`continue` 或 :keyword:`return` "
356+ "语句离开时,:keyword:`!finally` 也会在“离开之前”被执行,一个更复杂的例子::"
347357
348358#: ../../tutorial/errors.rst:377
349359msgid ""
@@ -352,6 +362,8 @@ msgid ""
352362":keyword:`except` clause and therefore re-raised after the "
353363":keyword:`!finally` clause has been executed."
354364msgstr ""
365+ "正如你所看到的,:keyword:`finally` 子句在任何情况下都会被执行。 两个字符串相除所引发的 :exc:`TypeError` 不会由 "
366+ ":keyword:`except` 子句处理,因此会在 :keyword:`!finally` 子句执行后被重新引发。"
355367
356368#: ../../tutorial/errors.rst:382
357369msgid ""
0 commit comments