@@ -62,7 +62,7 @@ msgstr "概念"
6262msgid ""
6363"Let's show the sort of functionality that we are going to explore in this "
6464"introductory tutorial by making use of the :command:`ls` command:"
65- msgstr "让我们通过使用 :command:`ls` 命令来展示我们将在本入门教程中探索的功能 :"
65+ msgstr "让我们利用 :command:`ls` 命令来展示我们将要在这篇入门教程中探索的功能 :"
6666
6767#: ../../howto/argparse.rst:46
6868msgid "A few concepts we can learn from the four commands:"
@@ -141,7 +141,8 @@ msgid ""
141141"else results in an error. But even then, we do get a useful usage message, "
142142"also for free."
143143msgstr ""
144- "``--help``选项,也可缩写为``-h``,是唯一一个可以免费获得的选项(即不需要指定该选项的内容)。指定任何内容会导致错误。即便如此,我们也能免费得到一条有用的用法信息。"
144+ "``--help`` 选项,也可缩写为 "
145+ "``-h``,是唯一一个可以直接使用的选项(即不需要指定该选项的内容)。指定任何内容都会导致错误。即便如此,我们也能直接得到一条有用的用法信息。"
145146
146147#: ../../howto/argparse.rst:110
147148msgid "Introducing Positional arguments"
@@ -165,8 +166,8 @@ msgid ""
165166" which command-line options the program is willing to accept. In this case, "
166167"I've named it ``echo`` so that it's in line with its function."
167168msgstr ""
168- "我们添加了 :meth:`add_argument` "
169- "方法,该方法用于指定程序能够接受哪些命令行选项。在这个例子中,我将选项命名为 ``echo``,与它的功能相一致 。"
169+ "我们增加了 :meth:`add_argument` 方法,该方法用于指定程序能够接受哪些命令行选项。在这个例子中,我将选项命名为 "
170+ "``echo``,与其功能一致 。"
170171
171172#: ../../howto/argparse.rst:144
172173msgid "Calling our program now requires us to specify an option."
@@ -224,7 +225,7 @@ msgstr "可选参数介绍"
224225msgid ""
225226"So far we have been playing with positional arguments. Let us have a look on"
226227" how to add optional ones::"
227- msgstr ""
228+ msgstr "到目前为止,我们一直在研究位置参数。让我们看看如何添加可选的:: "
228229
229230#: ../../howto/argparse.rst:234 ../../howto/argparse.rst:280
230231#: ../../howto/argparse.rst:396 ../../howto/argparse.rst:430
@@ -303,11 +304,11 @@ msgstr ""
303304
304305#: ../../howto/argparse.rst:343
305306msgid "Combining Positional and Optional arguments"
306- msgstr ""
307+ msgstr "结合位置参数和可选参数 "
307308
308309#: ../../howto/argparse.rst:345
309310msgid "Our program keeps growing in complexity::"
310- msgstr ""
311+ msgstr "我们的程序变得越来越复杂了:: "
311312
312313#: ../../howto/argparse.rst:360
313314msgid "And now the output:"
@@ -404,7 +405,7 @@ msgstr "这是它给我们的输出:"
404405msgid ""
405406"First output went well, and fixes the bug we had before. That is, we want "
406407"any value >= 2 to be as verbose as possible."
407- msgstr ""
408+ msgstr "第一组输出很好,修复了之前的 bug。也就是说,我们希望任何 >= 2 的值尽可能详尽。 "
408409
409410#: ../../howto/argparse.rst:556
410411msgid "Third output not so good."
0 commit comments