python / python-docs-zh-cn

zh_CN translation of the Python documentation
https://docs.python.org/zh-cn/
431 stars 74 forks source link

译文句意有误 #177

Closed atlanmatrix closed 1 year ago

atlanmatrix commented 3 years ago

【目标链接】:https://docs.python.org/3/tutorial/errors.html 【问题位置】:8.3 节 原文: The use of the else clause is better than adding additional code to the try clause because it avoids accidentally catching an exception that wasn’t raised by the code being protected by the try … except statement.

错误的译文翻译为: 使用 else 子句比向 try 子句添加额外的代码要好,因为它避免了意外捕获 try ... except 语句保护的代码 未引发 的异常。

译文应该翻译为: 使用 else 子句比向 try 子句添加额外的代码要好,因为它避免了意外捕获 try ... except 语句保护的代码 引发 的异常。

silkriver commented 3 years ago

fixed