@@ -37,6 +37,8 @@ msgid ""
37
37
"processing are provided either as third party modules on PyPI, or else as "
38
38
"features in the :mod:`argparse` module."
39
39
msgstr ""
40
+ "该模块被认为具有完备的特性。 在 :mod:`optparse` 模块中提供了一个针对此 API 的更为声明式和可扩展的替代物。 "
41
+ "对命令行形参处理进一步的功能增强或是作为 PyPI 上的第三方模块,或是作为 :mod:`argparse` 模块中的特性被提供。"
40
42
41
43
#: ../../library/getopt.rst:20
42
44
msgid ""
@@ -58,6 +60,9 @@ msgid ""
58
60
"should consider using the :mod:`optparse` module. See :ref:`choosing-an-"
59
61
"argument-parser` for additional details."
60
62
msgstr ""
63
+ "不熟悉 Unix :c:func:`!getopt` 函数的用户应当考虑改用 :mod:`argparse` 模块。 熟悉 Unix "
64
+ ":c:func:`!getopt` 函数,但希望在获得等价的行为同时使用更少的代码又具有更好的帮助和错误信息的用户应当考虑使用 "
65
+ ":mod:`optparse` 模块。 请参阅 :ref:`choosing-an-argument-parser` 了解更多细节。"
61
66
62
67
#: ../../library/getopt.rst:33
63
68
msgid "This module provides two functions and an exception:"
@@ -276,7 +281,7 @@ msgid ""
276
281
"Note that an equivalent command line interface could be produced with less "
277
282
"code and more informative help and error messages by using the "
278
283
":mod:`optparse` module:"
279
- msgstr ""
284
+ msgstr "请注意可以通过使用 :mod:`optparse` 模块以更少的代码并附带更清晰的帮助和错误消息生成等价的命令行界面: "
280
285
281
286
#: ../../library/getopt.rst:163
282
287
msgid ""
@@ -302,7 +307,7 @@ msgstr ""
302
307
msgid ""
303
308
"A roughly equivalent command line interface for this case can also be "
304
309
"produced by using the :mod:`argparse` module:"
305
- msgstr ""
310
+ msgstr "对这种情况也可以通过使用 :mod:`argparse` 模块来生成大致等价的命令行界面: "
306
311
307
312
#: ../../library/getopt.rst:177
308
313
msgid ""
@@ -332,6 +337,8 @@ msgid ""
332
337
"version of this code differs in behaviour from the ``optparse`` (and "
333
338
"``getopt``) version."
334
339
msgstr ""
340
+ "请参阅 :ref:`choosing-an-argument-parser` 了解有关此代码的 ``argparse`` 版本与 "
341
+ "``optparse`` (和 ``getopt``) 版本间行为差异的详情。"
335
342
336
343
#: ../../library/getopt.rst:195
337
344
msgid "Module :mod:`optparse`"
0 commit comments