File tree 1 file changed +5
-1
lines changed 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1044,7 +1044,7 @@ msgstr "创建解析器"
1044
1044
msgid ""
1045
1045
"The first step in using :mod:`optparse` is to create an OptionParser "
1046
1046
"instance."
1047
- msgstr ""
1047
+ msgstr "使用 :mod:`optparse` 的第一步是创建 OptionParser 实例。 "
1048
1048
1049
1049
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:805
1050
1050
msgid ""
@@ -1053,6 +1053,7 @@ msgid ""
1053
1053
"arguments, i.e. do not rely on the order in which the arguments are "
1054
1054
"declared."
1055
1055
msgstr ""
1056
+ "OptionParser 构造器没有必需的参数,只有一些可选的关键字参数。 你应当始终以关键字参数形式传入它们,即不要依赖于声明参数所在位置的顺序。"
1056
1057
1057
1058
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:814
1058
1059
msgid "``usage`` (default: ``\" %prog [options]\" ``)"
@@ -1066,6 +1067,9 @@ msgid ""
1066
1067
" that keyword argument). To suppress a usage message, pass the special "
1067
1068
"value :data:`optparse.SUPPRESS_USAGE`."
1068
1069
msgstr ""
1070
+ "当你的程序不正确地运行或附带 help 选项运行时将打印的用法说明。 当 :mod:`optparse` 打印用法字符串时,它会将 ``%prog`` "
1071
+ "扩展为 ``os.path.basename(sys.argv[0])`` (或者如果你传入 ``prog`` 则为该关键字参数值)。 "
1072
+ "要屏蔽用法说明,请传入特殊值 :data:`optparse.SUPPRESS_USAGE`。"
1069
1073
1070
1074
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:821
1071
1075
msgid "``option_list`` (default: ``[]``)"
You can’t perform that action at this time.
0 commit comments