@@ -46,7 +46,7 @@ msgstr ":keyword:`!if` 语句"
4646msgid ""
4747"Perhaps the most well-known statement type is the :keyword:`if` statement. "
4848"For example::"
49- msgstr "最耳熟能详的就是 :keyword:`if` 语句。例如:"
49+ msgstr "最让人耳熟能详的应该是 :keyword:`if` 语句。例如:"
5050
5151#: ../../tutorial/controlflow.rst:33
5252msgid ""
@@ -793,16 +793,15 @@ msgstr "下面是多行文档字符串的一个例子:"
793793
794794#: ../../tutorial/controlflow.rst:850
795795msgid "Function Annotations"
796- msgstr "函数标注 "
796+ msgstr "函数注解 "
797797
798798#: ../../tutorial/controlflow.rst:858
799799msgid ""
800800":ref:`Function annotations <function>` are completely optional metadata "
801801"information about the types used by user-defined functions (see :pep:`3107` "
802802"and :pep:`484` for more information)."
803803msgstr ""
804- ":ref:`函数标注 <function>` 是关于用户自定义函数中使用的类型的完全可选元数据信息(有关详情请参阅 :pep:`3107` 和 "
805- ":pep:`484` )。"
804+ ":ref:`函数注解 <function>` 是可选的用户自定义函数类型的元数据完整信息(详见 :pep:`3107` 和 :pep:`484` )。"
806805
807806#: ../../tutorial/controlflow.rst:862
808807msgid ""
@@ -816,10 +815,10 @@ msgid ""
816815"following example has a positional argument, a keyword argument, and the "
817816"return value annotated::"
818817msgstr ""
819- ":term:`函数标注 <function annotation>` 以字典的形式存放在函数的 :attr:`__annotations__` "
820- "属性中,并且不会影响函数的任何其他部分。 形参标注的定义方式是在形参名称后加上冒号 ,后面跟一个表达式,该表达式会被求值为标注的值 。 "
821- "返回值标注的定义方式是加上一个组合符号 ``->``,后面跟一个表达式,该标注位于形参列表和表示 :keyword:`def` 语句结束的冒号之间。 "
822- "下面的示例有一个位置参数,一个关键字参数以及返回值带有相应标注:: "
818+ ":term:`函数注解 <function annotation>` 以字典的形式存放在函数的 :attr:`__annotations__` "
819+ "属性中,并且不会影响函数的任何其他部分。 形参注解的定义方式是在形参名称后加上冒号 ,后面跟一个表达式,该表达式会被求值为注解的值 。 "
820+ "返回值注解的定义方式是加上一个组合符号 ``->``,后面跟一个表达式,该注解位于形参列表和表示 :keyword:`def` 语句结束的冒号之间。 "
821+ "下面的示例有一个位置参数、关键字参数以及返回值带有相应注解: "
823822
824823#: ../../tutorial/controlflow.rst:884
825824msgid "Intermezzo: Coding Style"
0 commit comments