@@ -163,27 +163,32 @@ msgid ""
163163"appending. These can equivalently be given as ``\" rb\" ``, ``\" wb\" ``, "
164164"``\" xb\" `` and ``\" ab\" `` respectively."
165165msgstr ""
166+ "*mode* 参数可以是表示读取的 ``\" r\" `` (默认值),表示覆写的 ``\" w\" ``,表示单独创建的 ``\" x\" ``,或表示添加的 "
167+ "``\" a\" ``。 这些模式还可以分别以 ``\" rb\" ``, ``\" wb\" ``, ``\" xb\" `` 和 ``\" ab\" `` "
168+ "的等价形式给出。"
166169
167170#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:88
168171msgid ""
169172"If *filename* is a file object (rather than an actual file name), a mode of "
170173"``\" w\" `` does not truncate the file, and is instead equivalent to "
171174"``\" a\" ``."
172- msgstr ""
175+ msgstr "如果 *filename* 是一个文件对象(而不是实际的文件名),则 `` \" w \" `` 模式并不会截断文件,而会等价于 `` \" a \" ``。 "
173176
174177#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:91
175178msgid ""
176179"When opening a file for reading, the input file may be the concatenation of "
177180"multiple separate compressed streams. These are transparently decoded as a "
178181"single logical stream."
179- msgstr ""
182+ msgstr "当打开一个文件用于读取时,输入文件可以为多个独立压缩流的拼接。 它们会被作为单个逻辑流被透明地解码。 "
180183
181184#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:102
182185msgid ""
183186":class:`LZMAFile` supports all the members specified by "
184187":class:`io.BufferedIOBase`, except for :meth:`detach` and :meth:`truncate`. "
185188"Iteration and the :keyword:`with` statement are supported."
186189msgstr ""
190+ ":class:`LZMAFile` 支持 :class:`io.BufferedIOBase` 所指定的所有成员,但 :meth:`detach` 和 "
191+ ":meth:`truncate` 除外。 并支持迭代和 :keyword:`with` 语句。"
187192
188193#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:106
189194msgid "The following method is also provided:"
@@ -194,7 +199,7 @@ msgid ""
194199"Return buffered data without advancing the file position. At least one byte "
195200"of data will be returned, unless EOF has been reached. The exact number of "
196201"bytes returned is unspecified (the *size* argument is ignored)."
197- msgstr ""
202+ msgstr "返回缓冲的数据而不前移文件位置。 至少将返回一个字节的数据,除非已经到达 EOF。 实际返回的字节数不确定(会忽略 *size* 参数)。 "
198203
199204#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:114
200205msgid ""
@@ -203,6 +208,8 @@ msgid ""
203208"(e.g. if the :class:`LZMAFile` was constructed by passing a file object for "
204209"*filename*)."
205210msgstr ""
211+ "虽然调用 :meth:`peek` 不会改变 :class:`LZMAFile` 的文件位置,但它可能改变下层文件对象的位置(举例来说如果 "
212+ ":class:`LZMAFile` 是通过传入一个文件对象作为 *filename* 的话)。"
206213
207214#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:119
208215msgid "Added support for the ``\" x\" `` and ``\" xb\" `` modes."
@@ -216,48 +223,48 @@ msgstr ":meth:`~io.BufferedIOBase.read` 方法现在接受 ``None`` 作为参数
216223
217224#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:131
218225msgid "Compressing and decompressing data in memory"
219- msgstr ""
226+ msgstr "在内存中压缩和解压缩数据 "
220227
221228#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:135
222229msgid ""
223230"Create a compressor object, which can be used to compress data "
224231"incrementally."
225- msgstr ""
232+ msgstr "创建一个压缩器对象,此对象可被用来执行增量压缩。 "
226233
227234#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:137
228235msgid ""
229236"For a more convenient way of compressing a single chunk of data, see "
230237":func:`compress`."
231- msgstr ""
238+ msgstr "压缩单个数据块的更便捷方式请参阅 :func:`compress`。 "
232239
233240#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:140
234241msgid ""
235242"The *format* argument specifies what container format should be used. "
236243"Possible values are:"
237- msgstr ""
244+ msgstr "*format* 参数指定应当使用哪种容器格式。 可能的值有: "
238245
239246#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:144
240247msgid ":const:`FORMAT_XZ`: The ``.xz`` container format."
241- msgstr ""
248+ msgstr ":const:`FORMAT_XZ`: ``.xz`` 容器格式。 "
242249
243250#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:144
244251msgid "This is the default format."
245252msgstr "这是默认格式。"
246253
247254#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:148
248255msgid ":const:`FORMAT_ALONE`: The legacy ``.lzma`` container format."
249- msgstr ""
256+ msgstr ":const:`FORMAT_ALONE`: 传统的 ``.lzma`` 容器格式。 "
250257
251258#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:147
252259msgid ""
253260"This format is more limited than ``.xz`` -- it does not support integrity "
254261"checks or multiple filters."
255- msgstr ""
262+ msgstr "这种格式相比 ``.xz`` 更为受限 -- 它不支持一致性检查或多重过滤器。 "
256263
257264#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:154
258265msgid ""
259266":const:`FORMAT_RAW`: A raw data stream, not using any container format."
260- msgstr ""
267+ msgstr ":const:`FORMAT_RAW`: 原始数据流,不使用任何容器格式。 "
261268
262269#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:151
263270msgid ""
@@ -266,6 +273,8 @@ msgid ""
266273"decompression). Additionally, data compressed in this manner cannot be "
267274"decompressed using :const:`FORMAT_AUTO` (see :class:`LZMADecompressor`)."
268275msgstr ""
276+ "这个格式描述器不支持一致性检查,并且要求你必须指定一个自定义的过滤器链(用于压缩和解压缩)。 此外,以这种方式压缩的数据不可使用 "
277+ ":const:`FORMAT_AUTO` 来解压缩 (参见 :class:`LZMADecompressor`)。"
269278
270279#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:156
271280msgid ""
0 commit comments