@@ -1496,12 +1496,16 @@ msgid ""
1496
1496
"specify to guide :mod:`optparse`'s behaviour; a few have required "
1497
1497
"attributes, which you must specify for any option using that action."
1498
1498
msgstr ""
1499
+ "各种选项动作具有略微不同的要求和效果。 大多数动作都具有几个可被你指定的相关选项属性用来控制 :mod:`optparse` "
1500
+ "的行为;少数还具有一些必需属性,你必须为任何使用该动作的选项指定这些属性。"
1499
1501
1500
1502
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1083
1501
1503
msgid ""
1502
1504
"``\" store\" `` [relevant: :attr:`~Option.type`, :attr:`~Option.dest`, "
1503
1505
":attr:`~Option.nargs`, :attr:`~Option.choices`]"
1504
1506
msgstr ""
1507
+ "``\" store\" `` [关联: :attr:`~Option.type`, :attr:`~Option.dest`, "
1508
+ ":attr:`~Option.nargs`, :attr:`~Option.choices`]"
1505
1509
1506
1510
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1086
1507
1511
msgid ""
@@ -1512,16 +1516,20 @@ msgid ""
1512
1516
"stored to :attr:`~Option.dest` as a tuple. See the :ref:`optparse-standard-"
1513
1517
"option-types` section."
1514
1518
msgstr ""
1519
+ "该选项后必须跟一个参数,它将根据 :attr:`~Option.type` 被转换为相应的值并保存至 :attr:`~Option.dest`。 如果 "
1520
+ ":attr:`~Option.nargs` > 1,则将从命令行读取多个参数;它们将全部根据 :attr:`~Option.type` "
1521
+ "被转换并以元组形式保存至 :attr:`~Option.dest`。 参见 :ref:`optparse-standard-option-types` "
1522
+ "一节。"
1515
1523
1516
1524
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1093
1517
1525
msgid ""
1518
1526
"If :attr:`~Option.choices` is supplied (a list or tuple of strings), the "
1519
1527
"type defaults to ``\" choice\" ``."
1520
- msgstr ""
1528
+ msgstr "如果提供了 :attr:`~Option.choices` (由字符串组成的列表和元组),则类型默认为 `` \" choice \" ``。 "
1521
1529
1522
1530
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1096
1523
1531
msgid "If :attr:`~Option.type` is not supplied, it defaults to ``\" string\" ``."
1524
- msgstr ""
1532
+ msgstr "如果未提供 :attr:`~Option.type`,则默认为 `` \" string \" ``。 "
1525
1533
1526
1534
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1098
1527
1535
msgid ""