File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,12 +45,14 @@ msgid ""
4545"uses of expression statements are allowed and occasionally useful. The "
4646"syntax for an expression statement is:"
4747msgstr ""
48+ "表达式语句用于计算和写入值(大多是在交互模式下),或者(通常情况)调用一个过程 (过程就是不返回有意义结果的函数;在 Python 中,过程的返回值为 "
49+ "``None``)。 表达式语句的其他使用方式也是允许且有特定用处的。 表达式语句的句法为:"
4850
4951#: ../../reference/simple_stmts.rst:52
5052msgid ""
5153"An expression statement evaluates the expression list (which may be a single"
5254" expression)."
53- msgstr ""
55+ msgstr "表达式语句会对指定的表达式列表(也可能为单一表达式)进行求值。 "
5456
5557#: ../../reference/simple_stmts.rst:64
5658msgid ""
@@ -59,16 +61,18 @@ msgid ""
5961"written to standard output on a line by itself (except if the result is "
6062"``None``, so that procedure calls do not cause any output.)"
6163msgstr ""
64+ "在交互模式下,如果结果值不为 ``None``,它会通过内置的 :func:`repr` "
65+ "函数转换为一个字符串,该结果字符串将以单独一行的形式写入标准输出(例外情况是如果结果为 ``None``,则该过程调用不产生任何输出。)"
6266
6367#: ../../reference/simple_stmts.rst:72
6468msgid "Assignment statements"
65- msgstr ""
69+ msgstr "赋值语句 "
6670
6771#: ../../reference/simple_stmts.rst:82
6872msgid ""
6973"Assignment statements are used to (re)bind names to values and to modify "
7074"attributes or items of mutable objects:"
71- msgstr ""
75+ msgstr "赋值语句用于将名称(重)绑定到特定值,以及修改属性或可变对象的成员项: "
7276
7377#: ../../reference/simple_stmts.rst:96
7478msgid ""
You can’t perform that action at this time.
0 commit comments