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