File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -481,20 +481,24 @@ msgid ""
481481"beyond the formal parameter list. (``*name`` must occur before ``**name``.)"
482482" For example, if we define a function like this::"
483483msgstr ""
484+ "当在最后出现形如 ``**name`` 的形式参数时,它会接受一个字典(参见 :ref:`typesmapping` "
485+ ")字典中包含了所有除了与形式参数对应的其他关键字参数。这可以和形如 ``*name`` "
486+ "的形式参数(在下一小节描述)结合,该参数会接受一个包含形式参数列表之外的位置参数的元组。(``*name`` 必须在出现在 ``**name`` "
487+ "之前。)比如,如果我们定义一个这样的函数::"
484488
485489#: ../../tutorial/controlflow.rst:498
486490msgid "It could be called like this::"
487- msgstr ""
491+ msgstr "它可以像这样调用:: "
488492
489493#: ../../tutorial/controlflow.rst:506
490494msgid "and of course it would print:"
491- msgstr ""
495+ msgstr "当然它会打印:: "
492496
493497#: ../../tutorial/controlflow.rst:519
494498msgid ""
495499"Note that the order in which the keyword arguments are printed is guaranteed"
496500" to match the order in which they were provided in the function call."
497- msgstr ""
501+ msgstr "注意打印时关键字参数的顺序保证与调用函数时提供它们的顺序是相匹配的。 "
498502
499503#: ../../tutorial/controlflow.rst:526
500504msgid "Arbitrary Argument Lists"
You can’t perform that action at this time.
0 commit comments