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

Skip to content

Commit 312c433

Browse files
[po] auto sync
1 parent a4e043f commit 312c433

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

library/lzma.po

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ msgid ""
7878
"object), in which case the named file is opened, or it can be an existing "
7979
"file object to read from or write to."
8080
msgstr ""
81+
"*filename* 参数可以是一个实际的文件名(以 :class:`str`, :class:`bytes` 或 :term:`路径类 <path-"
82+
"like object>` 对象的形式给出),在此情况下会打开指定名称的文件,或者可以是一个用于读写的现有文件对象。"
8183

8284
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:46
8385
msgid ""
@@ -86,6 +88,9 @@ msgid ""
8688
"or ``\"rt\"``, ``\"wt\"``, ``\"xt\"``, or ``\"at\"`` for text mode. The "
8789
"default is ``\"rb\"``."
8890
msgstr ""
91+
"*mode* 参数可以是二进制模式的 ``\"r\"``, ``\"rb\"``, ``\"w\"``, ``\"wb\"``, ``\"x\"``, "
92+
"``\"xb\"``, ``\"a\"`` 或 ``\"ab\"``,或者文本模式的 ``\"rt\"``, ``\"wt\"``, "
93+
"``\"xt\"`` 或 ``\"at\"``。 默认值为 ``\"rb\"``。"
8994

9095
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:50
9196
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:95
@@ -94,31 +99,39 @@ msgid ""
9499
"the same meanings as for :class:`LZMADecompressor`. In this case, the "
95100
"*check* and *preset* arguments should not be used."
96101
msgstr ""
102+
"当打开一个文件用于读取时,*format* 和 *filters* 参数具有与 :class:`LZMADecompressor` 的参数相同的含义。 "
103+
"在此情况下,*check* 和 *preset* 参数不应被使用。"
97104

98105
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:54
99106
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:99
100107
msgid ""
101108
"When opening a file for writing, the *format*, *check*, *preset* and "
102109
"*filters* arguments have the same meanings as for :class:`LZMACompressor`."
103110
msgstr ""
111+
"当打开一个文件用于写入的,*format*, *check*, *preset* 和 *filters* 参数具有与 "
112+
":class:`LZMACompressor` 的参数相同的含义。"
104113

105114
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:57
106115
msgid ""
107116
"For binary mode, this function is equivalent to the :class:`LZMAFile` "
108117
"constructor: ``LZMAFile(filename, mode, ...)``. In this case, the "
109118
"*encoding*, *errors* and *newline* arguments must not be provided."
110119
msgstr ""
120+
"对于二进制模式,这个函数等价于 :class:`LZMAFile` 构造器: ``LZMAFile(filename, mode, ...)``。 "
121+
"在这种情况下,不可提供 *encoding*, *errors* 和 *newline* 参数。"
111122

112123
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:61
113124
msgid ""
114125
"For text mode, a :class:`LZMAFile` object is created, and wrapped in an "
115126
":class:`io.TextIOWrapper` instance with the specified encoding, error "
116127
"handling behavior, and line ending(s)."
117128
msgstr ""
129+
"对于文本模式,将会创建一个 :class:`LZMAFile` 对象,并将它包装到一个 :class:`io.TextIOWrapper` "
130+
"实例中,此实例带有指定的编码格式、错误处理行为和行结束符。"
118131

119132
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:65
120133
msgid "Added support for the ``\"x\"``, ``\"xb\"`` and ``\"xt\"`` modes."
121-
msgstr ""
134+
msgstr "增加了对 ``\"x\"``, ``\"xb\"`` 和 ``\"xt\"`` 模式的支持。"
122135

123136
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:68
124137
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:126
@@ -127,7 +140,7 @@ msgstr "接受一个 :term:`类路径对象 <path-like object>`。"
127140

128141
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:74
129142
msgid "Open an LZMA-compressed file in binary mode."
130-
msgstr ""
143+
msgstr "以二进制模式打开一个 LZMA 压缩文件。"
131144

132145
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:76
133146
msgid ""
@@ -138,6 +151,10 @@ msgid ""
138151
"wrapping an existing file object, the wrapped file will not be closed when "
139152
"the :class:`LZMAFile` is closed."
140153
msgstr ""
154+
":class:`LZMAFile` 可以包装在一个已打开的 :term:`file object` 中,或者是在给定名称的文件上直接操作。 "
155+
"*filename* 参数指定所包装的文件对象,或是要打开的文件名称(类型为 :class:`str`, :class:`bytes` 或 "
156+
":term:`路径类 <path-like object>` 对象)。 如果是包装现有的文件对象,被包装的文件在 :class:`LZMAFile` "
157+
"被关闭时将不会被关闭。"
141158

142159
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:83
143160
msgid ""

0 commit comments

Comments
 (0)