@@ -1539,6 +1539,9 @@ msgid ""
1539
1539
" destination from the first short option string (e.g., ``-f`` implies "
1540
1540
"``f``)."
1541
1541
msgstr ""
1542
+ "如果未提供 :attr:`~Option.dest`,则 :mod:`optparse` 会从第一个长选项字符串派生出目标 (例如 ``--foo-"
1543
+ "bar`` 将对应 ``foo_bar``)。 如果不存在长选项字符串,则 :mod:`optparse` 会从第一个短选项字符串派生出目标 (例如 "
1544
+ "``-f`` 将对应 ``f``)。"
1542
1545
1543
1546
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1103
1544
1547
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1123
@@ -1606,22 +1609,25 @@ msgid ""
1606
1609
"multiple arguments are consumed, and a tuple of length :attr:`~Option.nargs`"
1607
1610
" is appended to :attr:`~Option.dest`."
1608
1611
msgstr ""
1612
+ "该选项必须跟一个参数,该参数将被添加到 :attr:`~Option.dest` 的列表中。 如果未提供 :attr:`~Option.dest` "
1613
+ "的默认值,那么当 :mod:`optparse` 首次在命令行中遇到该选项时将自动创建一个空列表。 如果 :attr:`~Option.nargs` >"
1614
+ " 1,则会读取多个参数,并将一个长度为 :attr:`~Option.nargs` 的元组添加到 :attr:`~Option.dest`。"
1609
1615
1610
1616
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1160
1611
1617
msgid ""
1612
1618
"The defaults for :attr:`~Option.type` and :attr:`~Option.dest` are the same "
1613
1619
"as for the ``\" store\" `` action."
1614
- msgstr ""
1620
+ msgstr ":attr:`~Option.type` 和 :attr:`~Option.dest` 的默认值与 `` \" store \" `` 动作的相同。 "
1615
1621
1616
1622
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1167
1617
1623
msgid ""
1618
1624
"If ``-t3`` is seen on the command-line, :mod:`optparse` does the equivalent "
1619
1625
"of::"
1620
- msgstr ""
1626
+ msgstr "如果在命令行中遇过 ``-t3``,:mod:`optparse` 将执行这样的操作:: "
1621
1627
1622
1628
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1173
1623
1629
msgid "If, a little later on, ``--tracks=4`` is seen, it does::"
1624
- msgstr ""
1630
+ msgstr "如果,在稍后的时候,再遇到 ``--tracks=4``,它将执行:: "
1625
1631
1626
1632
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1177
1627
1633
msgid ""
@@ -1631,12 +1637,15 @@ msgid ""
1631
1637
"the default elements will be present in the parsed value for the option, "
1632
1638
"with any values from the command line appended after those default values::"
1633
1639
msgstr ""
1640
+ "``append`` 动作会在选项的当前值上调用 ``append`` 方法。 这意味着任何被指定的默认值必须具有 ``append`` 方法。 "
1641
+ "这还意味着如果默认值非空,则其中的默认元素将存在于选项的已解析值中,而任何来自命令行的值将被添加到这些默认值之后::"
1634
1642
1635
1643
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1188
1636
1644
msgid ""
1637
1645
"``\" append_const\" `` [required: :attr:`~Option.const`; relevant: "
1638
1646
":attr:`~Option.dest`]"
1639
1647
msgstr ""
1648
+ "``\" append_const\" `` [需要: :attr:`~Option.const`; 关联: :attr:`~Option.dest`]"
1640
1649
1641
1650
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1191
1642
1651
msgid ""
@@ -1645,17 +1654,22 @@ msgid ""
1645
1654
" to ``None``, and an empty list is automatically created the first time the "
1646
1655
"option is encountered."
1647
1656
msgstr ""
1657
+ "与 ``\" store_const\" `` 类似,但 :attr:`~Option.const` 值将被添加到 "
1658
+ ":attr:`~Option.dest`;与 ``\" append\" `` 一样,:attr:`~Option.dest` 默认为 "
1659
+ "``None``,并且当首次遇到该选项时将自动创建一个空列表。"
1648
1660
1649
1661
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1196
1650
1662
msgid "``\" count\" `` [relevant: :attr:`~Option.dest`]"
1651
- msgstr ""
1663
+ msgstr "`` \" count \" `` [关联: :attr:`~Option.dest`] "
1652
1664
1653
1665
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1198
1654
1666
msgid ""
1655
1667
"Increment the integer stored at :attr:`~Option.dest`. If no default value "
1656
1668
"is supplied, :attr:`~Option.dest` is set to zero before being incremented "
1657
1669
"the first time."
1658
1670
msgstr ""
1671
+ "对保存在 :attr:`~Option.dest` 的整数执行递增。 如果未提供默认值,则 :attr:`~Option.dest` "
1672
+ "会在第一次执行递增之前被设为零。"
1659
1673
1660
1674
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1206
1661
1675
msgid ""