Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c6083d0

Browse files
[po] auto sync
1 parent 81e3fcb commit c6083d0

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

library/typing.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ msgstr "类型别名适用于简化复杂的类型签名。例如:"
9191
msgid ""
9292
"Note that ``None`` as a type hint is a special case and is replaced by "
9393
"``type(None)``."
94-
msgstr "注意,``None`` 是一种类型提示特例,且已被 ``type(None)`` 取代。"
94+
msgstr "注意,``None`` 是一种类型提示特例,已被 ``type(None)`` 取代。"
9595

9696
#: ../../library/typing.rst:75
9797
msgid "NewType"

tutorial/controlflow.po

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ msgstr ":keyword:`!if` 语句"
4646
msgid ""
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
5252
msgid ""
@@ -793,16 +793,15 @@ msgstr "下面是多行文档字符串的一个例子:"
793793

794794
#: ../../tutorial/controlflow.rst:850
795795
msgid "Function Annotations"
796-
msgstr "函数标注"
796+
msgstr "函数注解"
797797

798798
#: ../../tutorial/controlflow.rst:858
799799
msgid ""
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)."
803803
msgstr ""
804-
":ref:`函数标注 <function>` 是关于用户自定义函数中使用的类型的完全可选元数据信息(有关详情请参阅 :pep:`3107` 和 "
805-
":pep:`484` )。"
804+
":ref:`函数注解 <function>` 是可选的用户自定义函数类型的元数据完整信息(详见 :pep:`3107` 和 :pep:`484` )。"
806805

807806
#: ../../tutorial/controlflow.rst:862
808807
msgid ""
@@ -816,10 +815,10 @@ msgid ""
816815
"following example has a positional argument, a keyword argument, and the "
817816
"return value annotated::"
818817
msgstr ""
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
825824
msgid "Intermezzo: Coding Style"

0 commit comments

Comments
 (0)