@@ -16,7 +16,7 @@ msgid ""
16
16
msgstr ""
17
17
"Project-Id-Version : Python 3.7\n "
18
18
"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 "
20
20
"PO-Revision-Date : 2019-09-01 03:18+0000\n "
21
21
"Last-Translator : Freesand Leo <yuqinju@163.com>, 2023\n "
22
22
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -1334,6 +1334,9 @@ msgid ""
1334
1334
"stored as attributes of this object, according to the :attr:`~Option.dest` "
1335
1335
"(destination) option attribute."
1336
1336
msgstr ""
1337
+ "如你所见,大多数动作都涉及在某处保存或更新一个值。 :mod:`optparse` 总是会为此创建一个特殊对象,在习惯上命名为 ``options`` "
1338
+ "(它恰好是 :class:`optparse.Values` 的实例)。 选项参数 (以及几种其他的值) 将根据 "
1339
+ ":attr:`~Option.dest` (目标) 选项属性被保存为该对象的属性。"
1337
1340
1338
1341
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:961
1339
1342
msgid "For example, when you call ::"
@@ -1391,6 +1394,8 @@ msgid ""
1391
1394
"command line; the available options are documented :ref:`here <optparse-"
1392
1395
"standard-option-actions>`."
1393
1396
msgstr ""
1397
+ "用于当在命令行中遇到此选项时确定 :mod:`optparse` 的行为;可用的选项记录在 :ref:`这里 <optparse-standard-"
1398
+ "option-actions>`。"
1394
1399
1395
1400
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1009
1396
1401
msgid "(default: ``\" string\" ``)"
@@ -1402,11 +1407,13 @@ msgid ""
1402
1407
"``\" int\" ``); the available option types are documented :ref:`here "
1403
1408
"<optparse-standard-option-types>`."
1404
1409
msgstr ""
1410
+ "此选项所接受的参数类型 (例如 ``\" string\" `` 或 ``\" int\" ``);可用的选项类型记录在 :ref:`这里 <optparse-"
1411
+ "standard-option-types>`。"
1405
1412
1406
1413
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1017
1407
1414
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1067
1408
1415
msgid "(default: derived from option strings)"
1409
- msgstr ""
1416
+ msgstr "(默认: 获取自选项字符串) "
1410
1417
1411
1418
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1019
1412
1419
msgid ""
@@ -1415,12 +1422,14 @@ msgid ""
1415
1422
"attribute of the ``options`` object that :mod:`optparse` builds as it parses"
1416
1423
" the command line."
1417
1424
msgstr ""
1425
+ "如果此选项的动作涉及在某处写入或修改一个值,该属性将告诉 :mod:`optparse` 将它写入到哪里: :attr:`~Option.dest` "
1426
+ "指定 :mod:`optparse` 在解析命令行时构建的 ``options`` 对象的某个属性。"
1418
1427
1419
1428
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1026
1420
1429
msgid ""
1421
1430
"The value to use for this option's destination if the option is not seen on "
1422
1431
"the command line. See also :meth:`OptionParser.set_defaults`."
1423
- msgstr ""
1432
+ msgstr "当未在命令行中遇到此选项时将被用作此选项的目标的值。 另请参阅 :meth:`OptionParser.set_defaults`。 "
1424
1433
1425
1434
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1031
1426
1435
msgid "(default: 1)"
@@ -1432,29 +1441,33 @@ msgid ""
1432
1441
" option is seen. If > 1, :mod:`optparse` will store a tuple of values to "
1433
1442
":attr:`~Option.dest`."
1434
1443
msgstr ""
1444
+ "当遇到此选项时应当读取多少个 :attr:`~Option.type` 类型的参数。 如果 > 1,:mod:`optparse` "
1445
+ "会将由多个值组成的元组保存到 :attr:`~Option.dest`。"
1435
1446
1436
1447
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1039
1437
1448
msgid "For actions that store a constant value, the constant value to store."
1438
- msgstr ""
1449
+ msgstr "对于保存常量值的动作,指定要保存的常量值。 "
1439
1450
1440
1451
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1043
1441
1452
msgid ""
1442
1453
"For options of type ``\" choice\" ``, the list of strings the user may choose "
1443
1454
"from."
1444
- msgstr ""
1455
+ msgstr "对于 `` \" choice \" `` 类型的选项,由用户可选择的字符串组成的列表。 "
1445
1456
1446
1457
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1048
1447
1458
msgid ""
1448
1459
"For options with action ``\" callback\" ``, the callable to call when this "
1449
1460
"option is seen. See section :ref:`optparse-option-callbacks` for detail on "
1450
1461
"the arguments passed to the callable."
1451
1462
msgstr ""
1463
+ "对于使用 ``\" callback\" `` 动作的选项,当遇到此选项时要调用的可调用对象。 请参阅 :ref:`optparse-option-"
1464
+ "callbacks` 一节了解关于传给可调用对象的参数的详情。"
1452
1465
1453
1466
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1055
1454
1467
msgid ""
1455
1468
"Additional positional and keyword arguments to pass to ``callback`` after "
1456
1469
"the four standard callback arguments."
1457
- msgstr ""
1470
+ msgstr "将在四个标准回调参数之后传给 ``callback`` 的额外的位置和关键字参数。 "
1458
1471
1459
1472
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1060
1460
1473
msgid ""
@@ -1463,16 +1476,18 @@ msgid ""
1463
1476
" help text is supplied, the option will be listed without help text. To "
1464
1477
"hide this option, use the special value :data:`optparse.SUPPRESS_HELP`."
1465
1478
msgstr ""
1479
+ "当用户提供 :attr:`~Option.help` 选项 (例如 ``--help``) 之后将在列出所有可用选项时针对此选项打印的帮助文本。 "
1480
+ "如果没有提供帮助文本,则列出选项时将不附带帮助文本。 要隐藏此选项,请使用特殊值 :data:`optparse.SUPPRESS_HELP`。"
1466
1481
1467
1482
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1069
1468
1483
msgid ""
1469
1484
"Stand-in for the option argument(s) to use when printing help text. See "
1470
1485
"section :ref:`optparse-tutorial` for an example."
1471
- msgstr ""
1486
+ msgstr "当打印帮助文本时要使用的代表选项参数的名称。 请参阅 :ref:`optparse-tutorial` 一节查看相应示例。 "
1472
1487
1473
1488
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1076
1474
1489
msgid "Standard option actions"
1475
- msgstr ""
1490
+ msgstr "标准选项动作 "
1476
1491
1477
1492
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1078
1478
1493
msgid ""
0 commit comments