@@ -16,7 +16,7 @@ msgid ""
1616msgstr ""
1717"Project-Id-Version :Python 3.7\n "
1818"Report-Msgid-Bugs-To :\n "
19- "POT-Creation-Date :2023-04-21 14:38 +0000\n "
19+ "POT-Creation-Date :2023-04-28 14:39 +0000\n "
2020"PO-Revision-Date :2019-09-01 03:18+0000\n "
2121"Last-Translator :Freesand Leo <yuqinju@163.com>, 2023\n "
2222"Language-Team :Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -1334,6 +1334,9 @@ msgid ""
13341334"stored as attributes of this object, according to the :attr:`~Option.dest` "
13351335"(destination) option attribute."
13361336msgstr ""
1337+ "如你所见,大多数动作都涉及在某处保存或更新一个值。 :mod:`optparse` 总是会为此创建一个特殊对象,在习惯上命名为 ``options`` "
1338+ "(它恰好是 :class:`optparse.Values` 的实例)。 选项参数 (以及几种其他的值) 将根据 "
1339+ ":attr:`~Option.dest` (目标) 选项属性被保存为该对象的属性。"
13371340
13381341#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:961
13391342msgid "For example, when you call ::"
@@ -1391,6 +1394,8 @@ msgid ""
13911394"command line; the available options are documented :ref:`here <optparse-"
13921395"standard-option-actions>`."
13931396msgstr ""
1397+ "用于当在命令行中遇到此选项时确定 :mod:`optparse` 的行为;可用的选项记录在 :ref:`这里 <optparse-standard-"
1398+ "option-actions>`。"
13941399
13951400#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1009
13961401msgid "(default: ``\" string\" ``)"
@@ -1402,11 +1407,13 @@ msgid ""
14021407"``\" int\" ``); the available option types are documented :ref:`here "
14031408"<optparse-standard-option-types>`."
14041409msgstr ""
1410+ "此选项所接受的参数类型 (例如 ``\" string\" `` 或 ``\" int\" ``);可用的选项类型记录在 :ref:`这里 <optparse-"
1411+ "standard-option-types>`。"
14051412
14061413#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1017
14071414#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1067
14081415msgid "(default: derived from option strings)"
1409- msgstr ""
1416+ msgstr "(默认: 获取自选项字符串) "
14101417
14111418#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1019
14121419msgid ""
@@ -1415,12 +1422,14 @@ msgid ""
14151422"attribute of the ``options`` object that :mod:`optparse` builds as it parses"
14161423" the command line."
14171424msgstr ""
1425+ "如果此选项的动作涉及在某处写入或修改一个值,该属性将告诉 :mod:`optparse` 将它写入到哪里: :attr:`~Option.dest` "
1426+ "指定 :mod:`optparse` 在解析命令行时构建的 ``options`` 对象的某个属性。"
14181427
14191428#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1026
14201429msgid ""
14211430"The value to use for this option's destination if the option is not seen on "
14221431"the command line. See also :meth:`OptionParser.set_defaults`."
1423- msgstr ""
1432+ msgstr "当未在命令行中遇到此选项时将被用作此选项的目标的值。 另请参阅 :meth:`OptionParser.set_defaults`。 "
14241433
14251434#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1031
14261435msgid "(default: 1)"
@@ -1432,29 +1441,33 @@ msgid ""
14321441" option is seen. If > 1, :mod:`optparse` will store a tuple of values to "
14331442":attr:`~Option.dest`."
14341443msgstr ""
1444+ "当遇到此选项时应当读取多少个 :attr:`~Option.type` 类型的参数。 如果 > 1,:mod:`optparse` "
1445+ "会将由多个值组成的元组保存到 :attr:`~Option.dest`。"
14351446
14361447#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1039
14371448msgid "For actions that store a constant value, the constant value to store."
1438- msgstr ""
1449+ msgstr "对于保存常量值的动作,指定要保存的常量值。 "
14391450
14401451#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1043
14411452msgid ""
14421453"For options of type ``\" choice\" ``, the list of strings the user may choose "
14431454"from."
1444- msgstr ""
1455+ msgstr "对于 `` \" choice \" `` 类型的选项,由用户可选择的字符串组成的列表。 "
14451456
14461457#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1048
14471458msgid ""
14481459"For options with action ``\" callback\" ``, the callable to call when this "
14491460"option is seen. See section :ref:`optparse-option-callbacks` for detail on "
14501461"the arguments passed to the callable."
14511462msgstr ""
1463+ "对于使用 ``\" callback\" `` 动作的选项,当遇到此选项时要调用的可调用对象。 请参阅 :ref:`optparse-option-"
1464+ "callbacks` 一节了解关于传给可调用对象的参数的详情。"
14521465
14531466#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1055
14541467msgid ""
14551468"Additional positional and keyword arguments to pass to ``callback`` after "
14561469"the four standard callback arguments."
1457- msgstr ""
1470+ msgstr "将在四个标准回调参数之后传给 ``callback`` 的额外的位置和关键字参数。 "
14581471
14591472#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1060
14601473msgid ""
@@ -1463,16 +1476,18 @@ msgid ""
14631476" help text is supplied, the option will be listed without help text. To "
14641477"hide this option, use the special value :data:`optparse.SUPPRESS_HELP`."
14651478msgstr ""
1479+ "当用户提供 :attr:`~Option.help` 选项 (例如 ``--help``) 之后将在列出所有可用选项时针对此选项打印的帮助文本。 "
1480+ "如果没有提供帮助文本,则列出选项时将不附带帮助文本。 要隐藏此选项,请使用特殊值 :data:`optparse.SUPPRESS_HELP`。"
14661481
14671482#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1069
14681483msgid ""
14691484"Stand-in for the option argument(s) to use when printing help text. See "
14701485"section :ref:`optparse-tutorial` for an example."
1471- msgstr ""
1486+ msgstr "当打印帮助文本时要使用的代表选项参数的名称。 请参阅 :ref:`optparse-tutorial` 一节查看相应示例。 "
14721487
14731488#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1076
14741489msgid "Standard option actions"
1475- msgstr ""
1490+ msgstr "标准选项动作 "
14761491
14771492#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1078
14781493msgid ""