File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -655,9 +655,9 @@ msgid ""
655655"statements. The technique contrasts with the :term:`LBYL` style common to "
656656"many other languages such as C."
657657msgstr ""
658- "“求原谅比求许可更容易”的英文缩写。这种 Python 常用编码风格会假定所需的键或属性存在,并在假定错误时捕获异常。这种简洁快速风格的特定就是大量运用 "
659- " :keyword:`try` 和 :keyword:`except` 语句。于其相对的则是所谓 :term:`LBYL` 风格,常见于 C "
660- "等许多其他语言。"
658+ "“求原谅比求许可更容易”的英文缩写。这种 Python "
659+ "常用代码编写风格会假定所需的键或属性存在,并在假定错误时捕获异常。这种简洁快速风格的特定就是大量运用 :keyword:`try` 和 "
660+ ":keyword:`except` 语句。于其相对的则是所谓 :term:`LBYL` 风格,常见于 C 等许多其他语言。"
661661
662662#: ../../glossary.rst:328
663663msgid "expression"
@@ -1252,6 +1252,8 @@ msgid ""
12521252" is evaluated when the function is called. The syntax to create a lambda "
12531253"function is ``lambda [parameters]: expression``"
12541254msgstr ""
1255+ "由一个单独 :term:`expression` 构成的匿名内联函数,表达式会在调用时被求值。创建 lambda 函数的句法为 ``lambda "
1256+ "[parameters]: expression``"
12551257
12561258#: ../../glossary.rst:630
12571259msgid "LBYL"
@@ -1264,6 +1266,8 @@ msgid ""
12641266" approach and is characterized by the presence of many :keyword:`if` "
12651267"statements."
12661268msgstr ""
1269+ "“先查看后跳跃”的英文缩写。这种代码编写风格会在进行调用或查找之前显式地检查前提条件。此风格与 :term:`EAFP` 方式恰成对比,其特点是大量使用"
1270+ " :keyword:`if` 语句。"
12671271
12681272#: ../../glossary.rst:637
12691273msgid ""
You can’t perform that action at this time.
0 commit comments