@@ -117,49 +117,49 @@ msgstr ""
117117
118118#: ../../library/zipapp.rst:80
119119msgid ":option:`--main` cannot be specified when copying an archive."
120- msgstr ""
120+ msgstr "在复制打包文件时,不能设置 :option:`--main` 参数。 "
121121
122122#: ../../library/zipapp.rst:84
123123msgid ""
124124"Compress files with the deflate method, reducing the size of the output "
125125"file. By default, files are stored uncompressed in the archive."
126- msgstr ""
126+ msgstr "利用 deflate 方法压缩文件,减少输出文件的大小。默认情况下,打包文件中的文件是不压缩的。 "
127127
128128#: ../../library/zipapp.rst:87
129129msgid ":option:`--compress` has no effect when copying an archive."
130- msgstr ""
130+ msgstr "在复制打包文件时,:option:`--compress` 无效。 "
131131
132132#: ../../library/zipapp.rst:93
133133msgid ""
134134"Display the interpreter embedded in the archive, for diagnostic purposes. "
135135"In this case, any other options are ignored and SOURCE must be an archive, "
136136"not a directory."
137- msgstr ""
137+ msgstr "显示嵌入在打包文件中的解释器程序,以便诊断问题。这时会忽略其他所有参数,SOURCE 必须是个打包文件,而不是目录。 "
138138
139139#: ../../library/zipapp.rst:99
140140msgid "Print a short usage message and exit."
141- msgstr ""
141+ msgstr "打印简短的用法信息并退出。 "
142142
143143#: ../../library/zipapp.rst:105
144144msgid "Python API"
145- msgstr ""
145+ msgstr "Python API "
146146
147147#: ../../library/zipapp.rst:107
148148msgid "The module defines two convenience functions:"
149- msgstr ""
149+ msgstr "该模块定义了两个快捷函数: "
150150
151151#: ../../library/zipapp.rst:112
152152msgid ""
153153"Create an application archive from *source*. The source can be any of the "
154154"following:"
155- msgstr ""
155+ msgstr "由 *source* 创建一个应用程序打包文件。source 可以是以下形式之一: "
156156
157157#: ../../library/zipapp.rst:115
158158msgid ""
159159"The name of a directory, or a :term:`path-like object` referring to a "
160160"directory, in which case a new application archive will be created from the "
161161"content of that directory."
162- msgstr ""
162+ msgstr "一个目录名,或指向目录的 :term:`path-like object` ,这时将根据目录内容新建一个应用程序打包文件。 "
163163
164164#: ../../library/zipapp.rst:118
165165msgid ""
@@ -169,38 +169,42 @@ msgid ""
169169"argument). The file name should include the ``.pyz`` extension, if "
170170"required."
171171msgstr ""
172+ "一个已存在的应用程序打包文件名,或指向这类文件的 :term:`path-like object`,这时会将该文件复制为目标文件(会稍作修改以反映出 "
173+ "*interpreter* 参数的值)。必要时文件名中应包括 ``.pyz`` 扩展名。"
172174
173175#: ../../library/zipapp.rst:122
174176msgid ""
175177"A file object open for reading in bytes mode. The content of the file "
176178"should be an application archive, and the file object is assumed to be "
177179"positioned at the start of the archive."
178- msgstr ""
180+ msgstr "一个以字节串模式打开的文件对象。该文件的内容应为应用程序打包文件,且假定文件对象定位于打包文件的初始位置。 "
179181
180182#: ../../library/zipapp.rst:126
181183msgid ""
182184"The *target* argument determines where the resulting archive will be "
183185"written:"
184- msgstr ""
186+ msgstr "*target* 参数定义了打包文件的写入位置: "
185187
186188#: ../../library/zipapp.rst:129
187189msgid ""
188190"If it is the name of a file, or a :term:`path-like object`, the archive will"
189191" be written to that file."
190- msgstr ""
192+ msgstr "若是个文件名,或是 :term:`path-like object`,打包文件将写入该文件中。 "
191193
192194#: ../../library/zipapp.rst:131
193195msgid ""
194196"If it is an open file object, the archive will be written to that file "
195197"object, which must be open for writing in bytes mode."
196- msgstr ""
198+ msgstr "若是个打开的文件对象,打包文件将写入该对象,该文件对象必须在字节串写入模式下打开。 "
197199
198200#: ../../library/zipapp.rst:133
199201msgid ""
200202"If the target is omitted (or ``None``), the source must be a directory and "
201203"the target will be a file with the same name as the source, with a ``.pyz`` "
202204"extension added."
203205msgstr ""
206+ "如果省略了 target (或为 ``None``),则 source 必须为一个目录,target 将是与 source 同名的文件,并加上 "
207+ "``.pyz`` 扩展名。"
204208
205209#: ../../library/zipapp.rst:137
206210msgid ""
0 commit comments