66# Translators:
77# Zombie110year <[email protected] >, 201988# Dingyuan Wang <[email protected] >, 20199- # Freesand Leo <[email protected] >, 201910910+ # Freesand Leo <[email protected] >, 20201111#
1212#, fuzzy
1313msgid ""
@@ -16,7 +16,7 @@ msgstr ""
1616"Report-Msgid-Bugs-To : \n "
1717"POT-Creation-Date : 2020-01-01 12:19+0000\n "
1818"PO-Revision-Date : 2017-02-16 19:36+0000\n "
19- "Last-Translator : sgqy <sgqyzh@gmail .com>, 2019 \n "
19+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2020 \n "
2020"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2121"MIME-Version : 1.0\n "
2222"Content-Type : text/plain; charset=UTF-8\n "
@@ -108,18 +108,23 @@ msgid ""
108108"this case, the *encoding*, *errors* and *newline* arguments must not be "
109109"provided."
110110msgstr ""
111+ "对于二进制模式,这个函数等价于 :class:`BZ2File` 构造器: ``BZ2File(filename, mode, "
112+ "compresslevel=compresslevel)``。 在这种情况下,不可提供 *encoding*, *errors* 和 *newline*"
113+ " 参数。"
111114
112115#: /home/travis/build/python/cpython-doc-catalog/Doc/library/bz2.rst:55
113116msgid ""
114117"For text mode, a :class:`BZ2File` object is created, and wrapped in an "
115118":class:`io.TextIOWrapper` instance with the specified encoding, error "
116119"handling behavior, and line ending(s)."
117120msgstr ""
121+ "对于文本模式,将会创建一个 :class:`BZ2File` 对象,并将它包装到一个 :class:`io.TextIOWrapper` "
122+ "实例中,此实例带有指定的编码格式、错误处理行为和行结束符。"
118123
119124#: /home/travis/build/python/cpython-doc-catalog/Doc/library/bz2.rst:61
120125#: /home/travis/build/python/cpython-doc-catalog/Doc/library/bz2.rst:131
121126msgid "The ``'x'`` (exclusive creation) mode was added."
122- msgstr "添加了 ``'x'`` (仅创建 ) 模式。"
127+ msgstr "添加了 ``'x'`` (单独创建 ) 模式。"
123128
124129#: /home/travis/build/python/cpython-doc-catalog/Doc/library/bz2.rst:64
125130#: /home/travis/build/python/cpython-doc-catalog/Doc/library/bz2.rst:138
@@ -136,6 +141,8 @@ msgid ""
136141"file directly. Otherwise, *filename* should be a :term:`file object`, which "
137142"will be used to read or write the compressed data."
138143msgstr ""
144+ "如果 *filename* 是一个 :class:`str` 或 :class:`bytes` 对象,则打开名称对应的文件目录。 "
145+ "否则的话,*filename* 应当是一个 :term:`file object`,它将被用来读取或写入压缩数据。"
139146
140147#: /home/travis/build/python/cpython-doc-catalog/Doc/library/bz2.rst:76
141148msgid ""
@@ -144,30 +151,34 @@ msgid ""
144151"These can equivalently be given as ``'rb'``, ``'wb'``, ``'xb'`` and ``'ab'``"
145152" respectively."
146153msgstr ""
154+ "*mode* 参数可以是表示读取的 ``'r'`` (默认值),表示覆写的 ``'w'``,表示单独创建的 ``'x'``,或表示添加的 "
155+ "``'a'``。 这些模式还可别以 ``'rb'``, ``'wb'``, ``'xb'`` 和 ``'ab'`` 的等价形式给出。"
147156
148157#: /home/travis/build/python/cpython-doc-catalog/Doc/library/bz2.rst:81
149158msgid ""
150159"If *filename* is a file object (rather than an actual file name), a mode of "
151160"``'w'`` does not truncate the file, and is instead equivalent to ``'a'``."
152- msgstr ""
161+ msgstr "如果 *filename* 是一个文件对象(而不是实际的文件名),则 ``'w'`` 模式并不会截断文件,而是会等价于 ``'a'``。 "
153162
154163#: /home/travis/build/python/cpython-doc-catalog/Doc/library/bz2.rst:84
155164msgid ""
156165"The *buffering* argument is ignored. Its use is deprecated since Python 3.0."
157- msgstr ""
166+ msgstr "*buffering* 参数会被忽略。 从 Python 3.0 开始它已被弃用。 "
158167
159168#: /home/travis/build/python/cpython-doc-catalog/Doc/library/bz2.rst:86
160169msgid ""
161170"If *mode* is ``'w'`` or ``'a'``, *compresslevel* can be an integer between "
162171"``1`` and ``9`` specifying the level of compression: ``1`` produces the "
163172"least compression, and ``9`` (default) produces the most compression."
164173msgstr ""
174+ "如果 *mode* 为 ``'w'`` 或 ``'a'``,则 *compresslevel* 可以是 ``1`` 到 ``9`` "
175+ "之间的整数,用于指定压缩等级: ``1`` 产生最低压缩率,而 ``9`` (默认值) 产生最高压缩率。"
165176
166177#: /home/travis/build/python/cpython-doc-catalog/Doc/library/bz2.rst:90
167178msgid ""
168179"If *mode* is ``'r'``, the input file may be the concatenation of multiple "
169180"compressed streams."
170- msgstr ""
181+ msgstr "如果 *mode* 为 ``'r'``,则输入文件可以为多个压缩流的拼接。 "
171182
172183#: /home/travis/build/python/cpython-doc-catalog/Doc/library/bz2.rst:93
173184msgid ""
0 commit comments