@@ -2454,21 +2454,27 @@ msgid ""
2454
2454
":attr:`~Option.nargs`, then the option takes :attr:`~Option.nargs` "
2455
2455
"arguments."
2456
2456
msgstr ""
2457
+ "当你定义接受固定数量参数的 callback 选项时情况会变得更有趣一点。 指定一个 callback 选项接受参数的操作类似于定义一个 "
2458
+ "``\" store\" `` 或 ``\" append\" `` 选项:如果你定义 "
2459
+ ":attr:`~Option.type`,那么该选项将接受一个必须可被转换为相应类型的参数;如果你进一步定义 "
2460
+ ":attr:`~Option.nargs`,那么该选项将接受 :attr:`~Option.nargs` 个参数。"
2457
2461
2458
2462
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1768
2459
2463
msgid "Here's an example that just emulates the standard ``\" store\" `` action::"
2460
- msgstr ""
2464
+ msgstr "下面是一个模拟了标准 `` \" store \" `` 动作的示例:: "
2461
2465
2462
2466
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1777
2463
2467
msgid ""
2464
2468
"Note that :mod:`optparse` takes care of consuming 3 arguments and converting"
2465
2469
" them to integers for you; all you have to do is store them. (Or whatever; "
2466
2470
"obviously you don't need a callback for this example.)"
2467
2471
msgstr ""
2472
+ "请注意 :mod:`optparse` 将为你读取 3 个参数并将它们转换为整数;你所要做的只是保存它们。 "
2473
+ "(或任何其他操作;对于这个示例显然你不需要使用回调。)"
2468
2474
2469
2475
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1785
2470
2476
msgid "Callback example 6: variable arguments"
2471
- msgstr ""
2477
+ msgstr "回调示例 6:可变的参数 "
2472
2478
2473
2479
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1787
2474
2480
msgid ""