66# Translators:
7788# Zombie110year <[email protected] >, 20199+ # 1lin24 <[email protected] >, 2019910#
1011#, fuzzy
1112msgid ""
@@ -14,7 +15,7 @@ msgstr ""
1415"Report-Msgid-Bugs-To : \n "
1516"POT-Creation-Date : 2019-01-01 10:14+0900\n "
1617"PO-Revision-Date : 2017-02-16 23:12+0000\n "
17- "Last-Translator : Zombie110year <zombie110year@gmail .com>, 2019\n "
18+ "Last-Translator : 1lin24 <1lin24@sina .com>, 2019\n "
1819"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1920"MIME-Version : 1.0\n "
2021"Content-Type : text/plain; charset=UTF-8\n "
@@ -49,9 +50,10 @@ msgid ""
4950"-format files, automatically compressing or decompressing the data so that "
5051"it looks like an ordinary :term:`file object`."
5152msgstr ""
52- ":mod:`gzip` 模块提供 :class:`GzipFile` 类和便利的 "
53- ":func:`.open`、:func:`compress`、:func:`decompress` 函数。:class:`GzipFile` 类读写 "
54- ":program:`gzip` 格式的文件,同时自动压缩和解压缩数据,这让操作压缩文件如同操作普通的 :term:`file object` 一样方便。"
53+ ":mod:`gzip` 模块提供 :class:`GzipFile` 类和 "
54+ ":func:`.open`、:func:`compress`、:func:`decompress` 几个便利的函数。:class:`GzipFile` "
55+ "类可以读写 :program:`gzip` 格式的文件,还能自动压缩和解压缩数据,这让操作压缩文件如同操作普通的 :term:`file object`"
56+ " 一样方便。"
5557
5658#: ../../library/gzip.rst:22
5759msgid ""
@@ -70,33 +72,40 @@ msgstr "这个模块定义了以下内容:"
7072msgid ""
7173"Open a gzip-compressed file in binary or text mode, returning a :term:`file "
7274"object`."
73- msgstr ""
75+ msgstr "以二进制方式或者文本方式打开一个 gzip 格式的压缩文件,返回一个 :term:`file 文件对象`. "
7476
7577#: ../../library/gzip.rst:34
7678msgid ""
7779"The *filename* argument can be an actual filename (a :class:`str` or "
7880":class:`bytes` object), or an existing file object to read from or write to."
7981msgstr ""
82+ "*filename* 参数可以是一个实际的文件字(一个a :class:`str` 对象或者 :class:`bytes` 对象), "
83+ "或者是一个用来读写的已存在的文件对象。"
8084
8185#: ../../library/gzip.rst:37
8286msgid ""
8387"The *mode* argument can be any of ``'r'``, ``'rb'``, ``'a'``, ``'ab'``, "
8488"``'w'``, ``'wb'``, ``'x'`` or ``'xb'`` for binary mode, or ``'rt'``, "
8589"``'at'``, ``'wt'``, or ``'xt'`` for text mode. The default is ``'rb'``."
8690msgstr ""
91+ "*mode* 参数可以是二进制模式: ``'r'``, ``'rb'``, ``'a'``, ``'ab'``, ``'w'``, ``'wb'``, "
92+ "``'x'`` or ``'xb'`` , 或者是文字模式 ``'rt'``, ``'at'``, ``'wt'``, or ``'xt'``。默认值是"
93+ " ``'rb'``。"
8794
8895#: ../../library/gzip.rst:41
8996msgid ""
9097"The *compresslevel* argument is an integer from 0 to 9, as for the "
9198":class:`GzipFile` constructor."
92- msgstr ""
99+ msgstr " *compresslevel* 参数是一个用于 :class:`GzipFile` 构造器的从 0 到9的整数。 "
93100
94101#: ../../library/gzip.rst:44
95102msgid ""
96103"For binary mode, this function is equivalent to the :class:`GzipFile` "
97104"constructor: ``GzipFile(filename, mode, compresslevel)``. In this case, the "
98105"*encoding*, *errors* and *newline* arguments must not be provided."
99106msgstr ""
107+ "对于二进制模式,这个函数等价于 :class:`GzipFile` 构造器:``GzipFile(filename, mode, "
108+ "compresslevel)``。在这个例子中,*encoding*, *errors* 和 *newline* 三个参数一定不要设置。"
100109
101110#: ../../library/gzip.rst:48
102111msgid ""
@@ -109,7 +118,7 @@ msgstr ""
109118msgid ""
110119"Added support for *filename* being a file object, support for text mode, and"
111120" the *encoding*, *errors* and *newline* arguments."
112- msgstr ""
121+ msgstr "支持 *filename* 为一个文件对象,支持文本模式和 *encoding*, *errors* 和 *newline* 参数。 "
113122
114123#: ../../library/gzip.rst:56
115124msgid "Added support for the ``'x'``, ``'xb'`` and ``'xt'`` modes."
@@ -238,11 +247,11 @@ msgstr ""
238247
239248#: ../../library/gzip.rst:144
240249msgid "The :meth:`io.BufferedIOBase.read1` method is now implemented."
241- msgstr ""
250+ msgstr "实现 :meth:`io.BufferedIOBase.read1` 方法。 "
242251
243252#: ../../library/gzip.rst:147
244253msgid "Added support for the ``'x'`` and ``'xb'`` modes."
245- msgstr ""
254+ msgstr "增加了对 ``'x'`` and ``'xb'`` 两种模式的支持。 "
246255
247256#: ../../library/gzip.rst:150
248257msgid ""
@@ -257,12 +266,14 @@ msgid ""
257266"compressed data. *compresslevel* has the same meaning as in the "
258267":class:`GzipFile` constructor above."
259268msgstr ""
269+ "压缩 *data* 返回一个包含压缩数据的 :class:`bytes` 对象。 *compresslevel* 的作用与上面提到的 "
270+ ":class:`GzipFile` 构造器一至。"
260271
261272#: ../../library/gzip.rst:170
262273msgid ""
263274"Decompress the *data*, returning a :class:`bytes` object containing the "
264275"uncompressed data."
265- msgstr ""
276+ msgstr "解压数据,返回一个 :class:`bytes` 包含未解压数据的对象。 "
266277
267278#: ../../library/gzip.rst:179
268279msgid "Examples of usage"
0 commit comments