@@ -552,15 +552,14 @@ msgid ""
552552"parameters. If there is no ``/`` in the function definition, there are no "
553553"positional-only parameters."
554554msgstr ""
555- "在这里还可以发现更多细节,特定形参可以被标记为 *仅限位置*。 如果是 *仅限位置* 的形参,则其位置是重要的,并且该形参不能作为关键字传入。 "
556- "仅限位置形参要放在 ``/`` (正斜杠) 之前。 这个 ``/`` 被用来从逻辑上分隔仅限位置形参和其它形参。 如果函数定义中没有 "
557- "``/``,则表示没有仅限位置形参。"
555+ "此处再介绍一些细节,特定形参可以标记为 *仅限位置*。*仅限位置* 时,形参的顺序很重要,且这些形参不能用关键字传递。仅限位置形参应放在 ``/`` "
556+ "(正斜杠)前。``/`` 用于在逻辑上分割仅限位置形参与其它形参。如果函数定义中没有 ``/``,则表示没有仅限位置形参。"
558557
559558#: ../../tutorial/controlflow.rst:573
560559msgid ""
561560"Parameters following the ``/`` may be *positional-or-keyword* or *keyword-"
562561"only*."
563- msgstr "在 ``/`` 之后的形参可以为 *位置或关键字* 或 *仅限关键字*。"
562+ msgstr "``/`` 后可以是 *位置或关键字* 或 *仅限关键字* 形参 。"
564563
565564#: ../../tutorial/controlflow.rst:577
566565msgid "Keyword-Only Arguments"
@@ -571,8 +570,7 @@ msgid ""
571570"To mark parameters as *keyword-only*, indicating the parameters must be "
572571"passed by keyword argument, place an ``*`` in the arguments list just before"
573572" the first *keyword-only* parameter."
574- msgstr ""
575- "要将形参标记为 *仅限关键字*,即指明该形参必须以关键字参数的形式传入,应在参数列表的第一个 *仅限关键字* 形参之前放置一个 ``*``。"
573+ msgstr "把形参标记为 *仅限关键字*,表明必须以关键字参数形式传递该形参,应在参数列表中第一个 *仅限关键字* 形参前添加 ``*``。"
576574
577575#: ../../tutorial/controlflow.rst:585
578576msgid "Function Examples"
@@ -582,32 +580,32 @@ msgstr "函数示例"
582580msgid ""
583581"Consider the following example function definitions paying close attention "
584582"to the markers ``/`` and ``*``::"
585- msgstr "请考虑以下示例函数定义并特别注意 ``/`` 和 ``*`` 标记:: "
583+ msgstr "请看下面示例的函数定义,注意 ``/`` 和 ``*`` 标记: "
586584
587585#: ../../tutorial/controlflow.rst:603
588586msgid ""
589587"The first function definition, ``standard_arg``, the most familiar form, "
590588"places no restrictions on the calling convention and arguments may be passed"
591589" by position or keyword::"
592- msgstr "第一个函数定义 ``standard_arg`` 是最常见的形式,对调用方式没有任何限制,参数可以按位置也可以按关键字传入:: "
590+ msgstr "第一个函数定义 ``standard_arg`` 是最常见的形式,对调用方式没有任何限制,可以按位置也可以按关键字传递参数: "
593591
594592#: ../../tutorial/controlflow.rst:613
595593msgid ""
596594"The second function ``pos_only_arg`` is restricted to only use positional "
597595"parameters as there is a ``/`` in the function definition::"
598- msgstr "第二个函数 ``pos_only_arg`` 在函数定义中带有 ``/``,限制仅使用位置形参。:: "
596+ msgstr "第二个函数 ``pos_only_arg`` 的函数定义中有 ``/``,仅限使用位置形参: "
599597
600598#: ../../tutorial/controlflow.rst:624
601599msgid ""
602600"The third function ``kwd_only_args`` only allows keyword arguments as "
603601"indicated by a ``*`` in the function definition::"
604- msgstr "第三个函数 ``kwd_only_args`` 在函数定义中通过 ``*`` 指明仅允许关键字参数:: "
602+ msgstr "第三个函数 ``kwd_only_args`` 的函数定义通过 ``*`` 表明仅限关键字参数: "
605603
606604#: ../../tutorial/controlflow.rst:635
607605msgid ""
608606"And the last uses all three calling conventions in the same function "
609607"definition::"
610- msgstr "而最后一个则在同一函数定义中使用了全部三种调用方式:: "
608+ msgstr "最后一个函数在同一个函数定义中,使用了全部三种调用惯例: "
611609
612610#: ../../tutorial/controlflow.rst:655
613611msgid ""
0 commit comments