Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b0df136

Browse files
[po] auto sync
1 parent 917ef0f commit b0df136

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

library/optparse.po

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,25 @@ msgid ""
7575
"options to be associated with their arguments in a variety of ways. Thus, "
7676
"the following command lines are all equivalent to the above example::"
7777
msgstr ""
78+
"在它解析命令行时,:mod:`optparse` 会根据用户提供的命令行值设置 :meth:`parse_args` 所返回的 ``options`` "
79+
"对象的属性。 当 :meth:`parse_args` 从解析此命令行返回时,``options.filename`` 将为 "
80+
"``\"outfile\"`` 而 ``options.verbose`` 将为 ``False``。 :mod:`optparse` "
81+
"支持长短两种形式的选项,允许多个短选项合并到一起,并允许选项以多种方式与其参数相关联。 因此,以下命令行均等价于以上示例::"
7882

7983
#: ../../library/optparse.rst:58
8084
msgid "Additionally, users can run one of the following ::"
81-
msgstr ""
85+
msgstr "此外,用户还可以运行以下命令之一 ::"
8286

8387
#: ../../library/optparse.rst:63
8488
msgid ""
8589
"and :mod:`optparse` will print out a brief summary of your script's options:"
86-
msgstr ""
90+
msgstr "这样 :mod:`optparse` 将打印出你的脚本的选项概要:"
8791

8892
#: ../../library/optparse.rst:74
8993
msgid ""
9094
"where the value of *yourscript* is determined at runtime (normally from "
9195
"``sys.argv[0]``)."
92-
msgstr ""
96+
msgstr "其中 *yourscript* 的值是在运行时确定的 (通常来自 ``sys.argv[0]``)。"
9397

9498
#: ../../library/optparse.rst:81
9599
msgid "Background"
@@ -103,6 +107,8 @@ msgid ""
103107
" conventionally used under Unix. If you are unfamiliar with these "
104108
"conventions, read this section to acquaint yourself with them."
105109
msgstr ""
110+
":mod:`optparse` 被显式设计为鼓励创建带有简洁直观、符合惯例的命令行接口的程序。 为了这个目标,它仅支持最常见的命令行语法和在 Unix "
111+
"下使用的规范语义。 如果你不熟悉这些惯例,请阅读本小节来使自己熟悉它们。"
106112

107113
#: ../../library/optparse.rst:93
108114
msgid "Terminology"
@@ -119,6 +125,9 @@ msgid ""
119125
"(``sys.argv[0]`` is the name of the program being executed). Unix shells "
120126
"also use the term \"word\"."
121127
msgstr ""
128+
"在命令行中输入的字符串,并会被 shell 传给 ``execl()`` 或 ``execv()``。 在 Python 中,参数将是 "
129+
"``sys.argv[1:]`` 的元素 (``sys.argv[0]`` 是被执行的程序的名称)。 Unix shell 也使用术语 \"word\""
130+
" 来指代参数。"
122131

123132
#: ../../library/optparse.rst:101
124133
msgid ""

0 commit comments

Comments
 (0)