@@ -37,6 +37,8 @@ msgid ""
3737"processing are provided either as third party modules on PyPI, or else as "
3838"features in the :mod:`argparse` module."
3939msgstr ""
40+ "该模块被认为具有完备的特性。 在 :mod:`optparse` 模块中提供了一个针对此 API 的更为声明式和可扩展的替代物。 "
41+ "对命令行形参处理进一步的功能增强或是作为 PyPI 上的第三方模块,或是作为 :mod:`argparse` 模块中的特性被提供。"
4042
4143#: ../../library/getopt.rst:20
4244msgid ""
@@ -58,6 +60,9 @@ msgid ""
5860"should consider using the :mod:`optparse` module. See :ref:`choosing-an-"
5961"argument-parser` for additional details."
6062msgstr ""
63+ "不熟悉 Unix :c:func:`!getopt` 函数的用户应当考虑改用 :mod:`argparse` 模块。 熟悉 Unix "
64+ ":c:func:`!getopt` 函数,但希望在获得等价的行为同时使用更少的代码又具有更好的帮助和错误信息的用户应当考虑使用 "
65+ ":mod:`optparse` 模块。 请参阅 :ref:`choosing-an-argument-parser` 了解更多细节。"
6166
6267#: ../../library/getopt.rst:33
6368msgid "This module provides two functions and an exception:"
@@ -276,7 +281,7 @@ msgid ""
276281"Note that an equivalent command line interface could be produced with less "
277282"code and more informative help and error messages by using the "
278283":mod:`optparse` module:"
279- msgstr ""
284+ msgstr "请注意可以通过使用 :mod:`optparse` 模块以更少的代码并附带更清晰的帮助和错误消息生成等价的命令行界面: "
280285
281286#: ../../library/getopt.rst:163
282287msgid ""
@@ -302,7 +307,7 @@ msgstr ""
302307msgid ""
303308"A roughly equivalent command line interface for this case can also be "
304309"produced by using the :mod:`argparse` module:"
305- msgstr ""
310+ msgstr "对这种情况也可以通过使用 :mod:`argparse` 模块来生成大致等价的命令行界面: "
306311
307312#: ../../library/getopt.rst:177
308313msgid ""
@@ -332,6 +337,8 @@ msgid ""
332337"version of this code differs in behaviour from the ``optparse`` (and "
333338"``getopt``) version."
334339msgstr ""
340+ "请参阅 :ref:`choosing-an-argument-parser` 了解有关此代码的 ``argparse`` 版本与 "
341+ "``optparse`` (和 ``getopt``) 版本间行为差异的详情。"
335342
336343#: ../../library/getopt.rst:195
337344msgid "Module :mod:`optparse`"
0 commit comments