88# cdarlint <[email protected] >, 2017991010# Junkai Shao <[email protected] >, 201811- # Freesand Leo <[email protected] >, 20191211# zkonge, 2019
1312# Meng Du <[email protected] >, 201913+ # Freesand Leo <[email protected] >, 20191414#
1515#, fuzzy
1616msgid ""
@@ -19,7 +19,7 @@ msgstr ""
1919"Report-Msgid-Bugs-To : \n "
2020"POT-Creation-Date : 2019-05-30 11:32+0900\n "
2121"PO-Revision-Date : 2017-02-16 23:40+0000\n "
22- "Last-Translator : Meng Du <alphanow@gmail .com>, 2019\n "
22+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2019\n "
2323"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2424"MIME-Version : 1.0\n "
2525"Content-Type : text/plain; charset=UTF-8\n "
@@ -279,6 +279,10 @@ msgid ""
279279"for variables of enclosing functions, named in a :keyword:`nonlocal` "
280280"statement), although they may be referenced."
281281msgstr ""
282+ "函数的 *执行* 会引入一个用于函数局部变量的新符号表。 "
283+ "更确切地说,函数中所有的变量赋值都将存储在局部符号表中;而变量引用会首先在局部符号表中查找,然后是外层函数的局部符号表,最后是内置名称表。 "
284+ "因此,全局变量和外层函数的变量不能在函数内部直接赋值(除非是在 :keyword:`global` 语句中定义的全局变量,或者是在 "
285+ ":keyword:`nonlocal` 语句中定义的外层函数的变量),尽管它们可以被引用。"
282286
283287#: ../../tutorial/controlflow.rst:288
284288msgid ""
@@ -484,6 +488,10 @@ msgid ""
484488"positional arguments beyond the formal parameter list. (``*name`` must "
485489"occur before ``**name``.) For example, if we define a function like this::"
486490msgstr ""
491+ "当存在一个形式为 ``**name`` 的正式形参时,它会接收一个字典 (参见 "
492+ ":ref:`typesmapping`),其中包含除了与正式形参相对应的关键字参数以外的所有关键字参数。 这可以与一个形式为 "
493+ "``*name``,接收一个包含除了正式形参列表以外的位置参数的 :ref:`元组 <tut-tuples>` 的正式形参 (将在下一小节介绍) "
494+ "组合使用 (``*name`` 必须出现在 ``**name`` 之前。) 例如,如果我们这样定义一个函数::"
487495
488496#: ../../tutorial/controlflow.rst:500
489497msgid "It could be called like this::"
0 commit comments