File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -419,13 +419,14 @@ msgstr ""
419419msgid ""
420420"Once all of your options are defined, instruct :mod:`optparse` to parse your"
421421" program's command line::"
422- msgstr ""
422+ msgstr "一旦你定义好所有的选项,即可指令 :mod:`optparse` 来解析你的程序的命令行:: "
423423
424424#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:288
425425msgid ""
426426"(If you like, you can pass a custom argument list to :meth:`parse_args`, but"
427427" that's rarely necessary: by default it uses ``sys.argv[1:]``.)"
428428msgstr ""
429+ "(如果你愿意,你可以将自定义的参数列表传给 :meth:`parse_args`,但很少有必要这样做:默认它将使用 ``sys.argv[1:]``。)"
429430
430431#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:291
431432msgid ":meth:`parse_args` returns two values:"
@@ -438,11 +439,13 @@ msgid ""
438439" filename supplied by the user, or ``None`` if the user did not supply that "
439440"option"
440441msgstr ""
442+ "``options``,一个包含你所有的选项的值的对象 --- 举例来说,如果 ``--file`` 接受一个字符串参数,则 "
443+ "``options.file`` 将为用户所提供的文件名,或者如果用户未提供该选项则为 ``None``"
441444
442445#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:298
443446msgid ""
444447"``args``, the list of positional arguments leftover after parsing options"
445- msgstr ""
448+ msgstr "``args``,由解析选项之后余下的位置参数组成的列表 "
446449
447450#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:300
448451msgid ""
You can’t perform that action at this time.
0 commit comments