@@ -1203,12 +1203,13 @@ msgid ""
1203
1203
"acceptable to :func:`make_option` (i.e., to the Option constructor), and it "
1204
1204
"will create the Option instance for you"
1205
1205
msgstr ""
1206
+ "传入 :func:`make_option` 可接受的(即与 Option 构造器相同的)任意位置和关键字参数组合,它将为你创建 Option 实例"
1206
1207
1207
1208
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:874
1208
1209
msgid ""
1209
1210
"The other alternative is to pass a list of pre-constructed Option instances "
1210
1211
"to the OptionParser constructor, as in::"
1211
- msgstr ""
1212
+ msgstr "另一种方式是将由预先构造的 Option 实例组成的列表传给 OptionParser 构造器,如下所示:: "
1212
1213
1213
1214
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:885
1214
1215
msgid ""
@@ -1218,6 +1219,9 @@ msgid ""
1218
1219
":func:`make_option` will pick the right class to instantiate. Do not "
1219
1220
"instantiate Option directly.)"
1220
1221
msgstr ""
1222
+ "(:func:`make_option` 是一个用于创建 Option 实例的工厂函数;目前它是 Option 构造器的一个别名。 未来的 "
1223
+ ":mod:`optparse` 版本可能会将 Option 拆分为多个类,而 :func:`make_option` 将选择适当的类来实例化。 "
1224
+ "请不要直接实例化 Option。)"
1221
1225
1222
1226
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:894
1223
1227
msgid "Defining options"
@@ -1230,12 +1234,15 @@ msgid ""
1230
1234
" long option strings, but you must specify at least one overall option "
1231
1235
"string."
1232
1236
msgstr ""
1237
+ "每个 Option 实例代表一组同义的命令行选项字符串,例如 ``-f`` 和 ``--file``。 "
1238
+ "你可以指定任意数量的短和长选项字符串,但你必须指定总计至少一个选项字符串。"
1233
1239
1234
1240
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:900
1235
1241
msgid ""
1236
1242
"The canonical way to create an :class:`Option` instance is with the "
1237
1243
":meth:`add_option` method of :class:`OptionParser`."
1238
1244
msgstr ""
1245
+ "创建 :class:`Option` 的正规方式是使用 :class:`OptionParser` 的 :meth:`add_option` 方法。"
1239
1246
1240
1247
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:906
1241
1248
msgid "To define an option with only a short option string::"
0 commit comments