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

Skip to content

Commit a79c6b9

Browse files
[po] auto sync
1 parent a033df8 commit a79c6b9

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "90.85%", "updated_at": "2023-10-01T06:56:38Z"}
1+
{"translation": "90.86%", "updated_at": "2023-10-01T07:57:22Z"}

tutorial/controlflow.po

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
# Dai Xu <[email protected]>, 2023
1515
# cissoid <[email protected]>, 2023
1616
# LeeWendao <[email protected]>, 2023
17-
# Freesand Leo <[email protected]>, 2023
1817
# 乐成 王, 2023
18+
# Freesand Leo <[email protected]>, 2023
1919
#
2020
#, fuzzy
2121
msgid ""
@@ -24,7 +24,7 @@ msgstr ""
2424
"Report-Msgid-Bugs-To: \n"
2525
"POT-Creation-Date: 2023-09-29 14:12+0000\n"
2626
"PO-Revision-Date: 2021-06-28 01:50+0000\n"
27-
"Last-Translator: 乐成 王, 2023\n"
27+
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
2828
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2929
"MIME-Version: 1.0\n"
3030
"Content-Type: text/plain; charset=UTF-8\n"
@@ -534,6 +534,11 @@ msgid ""
534534
"this example it is equivalent to ``result = result + [a]``, but more "
535535
"efficient."
536536
msgstr ""
537+
"语句 ``result.append(a)`` 调用了列表对象 ``result`` 的 *方法*。 方法是‘从属于’对象的函数,其名称为 "
538+
"``obj.methodname``,其中 ``obj`` 是某个对象(可以是一个表达式),``methodname`` 是由对象的类型定义的方法名称。"
539+
" 不同的类型定义了不同的方法。 不同的类型的方法可以使用相同的名称而不会产生歧义。 (使用 *类* 可以定义自己的对象类型和方法,参见 "
540+
":ref:`tut-classes`。) 在示例中显示的方法 :meth:`!append` 是由列表对象定义的;它会在列表的末尾添加一个新元素。 "
541+
"在本例中它等同于 ``result = result + [a]``,但效率更高。"
537542

538543
#: ../../tutorial/controlflow.rst:545
539544
msgid "More on Defining Functions"
@@ -998,6 +1003,10 @@ msgid ""
9981003
"following example has a required argument, an optional argument, and the "
9991004
"return value annotated::"
10001005
msgstr ""
1006+
":term:`标注 <function annotation>` 以字典的形式存放在函数的 :attr:`!__annotations__` "
1007+
"属性中而对函数的其他部分没有影响。 形参标注的定义方式是在形参名后加冒号,后面跟一个会被求值为标注的值的表达式。 返回值标注的定义方式是加组合符号 "
1008+
"``->``,后面跟一个表达式,这样的校注位于形参列表和表示 :keyword:`def` 语句结束的冒号。 "
1009+
"下面的示例有一个必须的参数、一个可选的关键字参数以及返回值都带有相应的标注::"
10011010

10021011
#: ../../tutorial/controlflow.rst:1071
10031012
msgid "Intermezzo: Coding Style"

0 commit comments

Comments
 (0)