File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -284,6 +284,8 @@ msgid ""
284284"*reference*, not the value of the object). [#]_ When a function calls "
285285"another function, a new local symbol table is created for that call."
286286msgstr ""
287+ "在函数被调用时,实际参数(实参)会被引入被调用函数的本地符号表中;因此,实参是通过 *按值调用* 传递的(其中 *值* 始终是对象 *引用* "
288+ "而不是对象的值)。[#]_ 当一个函数调用另外一个函数时,将会为该调用创建一个新的本地符号表。"
287289
288290#: ../../tutorial/controlflow.rst:292
289291msgid ""
@@ -293,6 +295,7 @@ msgid ""
293295"another name which can then also be used as a function. This serves as a "
294296"general renaming mechanism::"
295297msgstr ""
298+ "函数定义会把函数名引入当前的符号表中。函数名称的值具有解释器将其识别为用户定义函数的类型。这个值可以分配给另一个名称,该名称也可以作为一个函数使用。这用作一般的重命名机制::"
296299
297300#: ../../tutorial/controlflow.rst:304
298301msgid ""
@@ -304,6 +307,9 @@ msgid ""
304307"the only value written. You can see it if you really want to using "
305308":func:`print`::"
306309msgstr ""
310+ "如果你学过其他语言,你可能会认为 ``fib`` 不是函数而是一个过程,因为它并不返回值。事实上,即使没有 :keyword:`return` "
311+ "语句的函数也会返回一个值,尽管它是一个相当无聊的值。这个值称为 ``None`` (它是内置名称)。一般来说解释器不会打印出单独的返回值 "
312+ "``None`` ,如果你真想看到它,你可以使用 :func:`print` ::"
307313
308314#: ../../tutorial/controlflow.rst:315
309315msgid ""
You can’t perform that action at this time.
0 commit comments