88# Freesand Leo <[email protected] >, 201899# Trim21 <[email protected] >, 2019101011+ # allenjuly7 <[email protected] >, 20191112#
1213#, fuzzy
1314msgid ""
@@ -16,7 +17,7 @@ msgstr ""
1617"Report-Msgid-Bugs-To : \n "
1718"POT-Creation-Date : 2019-01-01 10:14+0900\n "
1819"PO-Revision-Date : 2017-02-16 17:44+0000\n "
19- "
Last-Translator :
兴然 刘 <[email protected] >, 2019\n"
20+ "
Last-Translator :
allenjuly7 <[email protected] >, 2019\n"
2021"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2122"MIME-Version : 1.0\n "
2223"Content-Type : text/plain; charset=UTF-8\n "
@@ -119,19 +120,19 @@ msgstr "以下是该代码的运行结果:"
119120#: ../../howto/argparse.rst:95 ../../howto/argparse.rst:252
120121#: ../../howto/argparse.rst:296
121122msgid "Here is what is happening:"
122- msgstr ""
123+ msgstr "程序运行情况如下: "
123124
124125#: ../../howto/argparse.rst:97
125126msgid ""
126127"Running the script without any options results in nothing displayed to "
127128"stdout. Not so useful."
128- msgstr ""
129+ msgstr "在没有任何选项的情况下运行脚本不会在标准输出显示任何内容。这没有什么用处。 "
129130
130131#: ../../howto/argparse.rst:100
131132msgid ""
132133"The second one starts to display the usefulness of the :mod:`argparse` "
133134"module. We have done almost nothing, but already we get a nice help message."
134- msgstr ""
135+ msgstr "第二行代码开始展现出 :mod:`argparse` 模块的作用。我们几乎什么也没有做,但已经得到一条很好的帮助信息。 "
135136
136137#: ../../howto/argparse.rst:103
137138msgid ""
@@ -140,39 +141,42 @@ msgid ""
140141"else results in an error. But even then, we do get a useful usage message, "
141142"also for free."
142143msgstr ""
144+ "``--help``选项,也可缩写为``-h``,是唯一一个可以免费获得的选项(即不需要指定该选项的内容)。指定任何内容会导致错误。即便如此,我们也能免费得到一条有用的用法信息。"
143145
144146#: ../../howto/argparse.rst:110
145147msgid "Introducing Positional arguments"
146- msgstr ""
148+ msgstr "位置参数介绍 "
147149
148150#: ../../howto/argparse.rst:112
149151msgid "An example::"
150- msgstr ""
152+ msgstr "举个例子: "
151153
152154#: ../../howto/argparse.rst:120
153155msgid "And running the code:"
154- msgstr ""
156+ msgstr "运行此程序: "
155157
156158#: ../../howto/argparse.rst:138
157159msgid "Here is what's happening:"
158- msgstr ""
160+ msgstr "程序运行情况如下: "
159161
160162#: ../../howto/argparse.rst:140
161163msgid ""
162164"We've added the :meth:`add_argument` method, which is what we use to specify"
163165" which command-line options the program is willing to accept. In this case, "
164166"I've named it ``echo`` so that it's in line with its function."
165167msgstr ""
168+ "我们添加了 :meth:`add_argument` "
169+ "方法,该方法用于指定程序能够接受哪些命令行选项。在这个例子中,我将选项命名为``echo``,与它的功能相一致。"
166170
167171#: ../../howto/argparse.rst:144
168172msgid "Calling our program now requires us to specify an option."
169- msgstr ""
173+ msgstr "现在调用我们的程序必须要指定一个选项。 "
170174
171175#: ../../howto/argparse.rst:146
172176msgid ""
173177"The :meth:`parse_args` method actually returns some data from the options "
174178"specified, in this case, ``echo``."
175- msgstr ""
179+ msgstr " :meth:`parse_args` 方法实际上返回所指定的选项中的一些信息,在这个例子中返回的是``echo``。 "
176180
177181#: ../../howto/argparse.rst:149
178182msgid ""
0 commit comments