77msgstr ""
88"Project-Id-Version : Python 3.13\n "
99"Report-Msgid-Bugs-To : \n "
10- "POT-Creation-Date : 2024-09-23 07:52+0800 \n "
10+ "POT-Creation-Date : 2025-04-11 00:15+0000 \n "
1111"PO-Revision-Date : 2018-05-23 16:03+0000\n "
1212"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
1313"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -105,7 +105,7 @@ msgstr ""
105105msgid "Added support for the ``'x'``, ``'xb'`` and ``'xt'`` modes."
106106msgstr "新增 ``'x'``、``'xb'`` 和 ``'xt'`` 模式的支援。"
107107
108- #: ../../library/gzip.rst:59 ../../library/gzip.rst:175
108+ #: ../../library/gzip.rst:59 ../../library/gzip.rst:173
109109msgid "Accepts a :term:`path-like object`."
110110msgstr "接受\\ :term:`類路徑物件 <path-like object>`。"
111111
@@ -201,90 +201,89 @@ msgstr ":class:`GzipFile` 也提供了以下的方法和屬性:"
201201
202202#: ../../library/gzip.rst:124
203203msgid ""
204- "Read *n* uncompressed bytes without advancing the file position. At most one "
205- "single read on the compressed stream is done to satisfy the call. The "
206- "number of bytes returned may be more or less than requested."
204+ "Read *n* uncompressed bytes without advancing the file position. The number "
205+ "of bytes returned may be more or less than requested."
207206msgstr ""
208207
209- #: ../../library/gzip.rst:129
208+ #: ../../library/gzip.rst:127
210209msgid ""
211210"While calling :meth:`peek` does not change the file position of the :class:"
212211"`GzipFile`, it may change the position of the underlying file object (e.g. "
213212"if the :class:`GzipFile` was constructed with the *fileobj* parameter)."
214213msgstr ""
215214
216- #: ../../library/gzip.rst:138
215+ #: ../../library/gzip.rst:136
217216msgid "``'rb'`` for reading and ``'wb'`` for writing."
218217msgstr ""
219218
220- #: ../../library/gzip.rst:140
219+ #: ../../library/gzip.rst:138
221220msgid "In previous versions it was an integer ``1`` or ``2``."
222221msgstr ""
223222
224- #: ../../library/gzip.rst:145
223+ #: ../../library/gzip.rst:143
225224msgid ""
226225"When decompressing, this attribute is set to the last timestamp in the most "
227226"recently read header. It is an integer, holding the number of seconds since "
228227"the Unix epoch (00:00:00 UTC, January 1, 1970). The initial value before "
229228"reading any headers is ``None``."
230229msgstr ""
231230
232- #: ../../library/gzip.rst:152
231+ #: ../../library/gzip.rst:150
233232msgid ""
234233"The path to the gzip file on disk, as a :class:`str` or :class:`bytes`. "
235234"Equivalent to the output of :func:`os.fspath` on the original input path, "
236235"with no other normalization, resolution or expansion."
237236msgstr ""
238237
239- #: ../../library/gzip.rst:156
238+ #: ../../library/gzip.rst:154
240239msgid ""
241240"Support for the :keyword:`with` statement was added, along with the *mtime* "
242241"constructor argument and :attr:`mtime` attribute."
243242msgstr ""
244243
245- #: ../../library/gzip.rst:160
244+ #: ../../library/gzip.rst:158
246245msgid "Support for zero-padded and unseekable files was added."
247246msgstr ""
248247
249- #: ../../library/gzip.rst:163
248+ #: ../../library/gzip.rst:161
250249msgid "The :meth:`io.BufferedIOBase.read1` method is now implemented."
251250msgstr ":meth:`io.BufferedIOBase.read1` 方法現在已有實作。"
252251
253- #: ../../library/gzip.rst:166
252+ #: ../../library/gzip.rst:164
254253msgid "Added support for the ``'x'`` and ``'xb'`` modes."
255254msgstr "新增 ``'x'`` 和 ``'xb'`` 模式的支援。"
256255
257- #: ../../library/gzip.rst:169
256+ #: ../../library/gzip.rst:167
258257msgid ""
259258"Added support for writing arbitrary :term:`bytes-like objects <bytes-like "
260259"object>`. The :meth:`~io.BufferedIOBase.read` method now accepts an argument "
261260"of ``None``."
262261msgstr ""
263262
264- #: ../../library/gzip.rst:178
263+ #: ../../library/gzip.rst:176
265264msgid ""
266265"Opening :class:`GzipFile` for writing without specifying the *mode* argument "
267266"is deprecated."
268267msgstr ""
269268
270- #: ../../library/gzip.rst:182
269+ #: ../../library/gzip.rst:180
271270msgid ""
272271"Remove the ``filename`` attribute, use the :attr:`~GzipFile.name` attribute "
273272"instead."
274273msgstr ""
275274
276- #: ../../library/gzip.rst:189
275+ #: ../../library/gzip.rst:187
277276msgid ""
278277"Compress the *data*, returning a :class:`bytes` object containing the "
279278"compressed data. *compresslevel* and *mtime* have the same meaning as in "
280279"the :class:`GzipFile` constructor above."
281280msgstr ""
282281
283- #: ../../library/gzip.rst:194
282+ #: ../../library/gzip.rst:192
284283msgid "Added the *mtime* parameter for reproducible output."
285284msgstr ""
286285
287- #: ../../library/gzip.rst:196
286+ #: ../../library/gzip.rst:194
288287msgid ""
289288"Speed is improved by compressing all data at once instead of in a streamed "
290289"fashion. Calls with *mtime* set to ``0`` are delegated to :func:`zlib."
@@ -293,13 +292,13 @@ msgid ""
293292"underlying zlib implementation."
294293msgstr ""
295294
296- #: ../../library/gzip.rst:203
295+ #: ../../library/gzip.rst:201
297296msgid ""
298297"The gzip header OS byte is guaranteed to be set to 255 when this function is "
299298"used as was the case in 3.10 and earlier."
300299msgstr ""
301300
302- #: ../../library/gzip.rst:209
301+ #: ../../library/gzip.rst:207
303302msgid ""
304303"Decompress the *data*, returning a :class:`bytes` object containing the "
305304"uncompressed data. This function is capable of decompressing multi-member "
@@ -308,21 +307,21 @@ msgid ""
308307"*wbits* set to 31 is faster."
309308msgstr ""
310309
311- #: ../../library/gzip.rst:216
310+ #: ../../library/gzip.rst:214
312311msgid ""
313312"Speed is improved by decompressing members at once in memory instead of in a "
314313"streamed fashion."
315314msgstr ""
316315
317- #: ../../library/gzip.rst:223
316+ #: ../../library/gzip.rst:221
318317msgid "Examples of usage"
319318msgstr "用法範例"
320319
321- #: ../../library/gzip.rst:225
320+ #: ../../library/gzip.rst:223
322321msgid "Example of how to read a compressed file::"
323322msgstr "如何讀取壓縮檔案的範例: ::"
324323
325- #: ../../library/gzip.rst:227
324+ #: ../../library/gzip.rst:225
326325msgid ""
327326"import gzip\n"
328327"with gzip.open('/home/joe/file.txt.gz', 'rb') as f:\n"
@@ -332,11 +331,11 @@ msgstr ""
332331"with gzip.open('/home/joe/file.txt.gz', 'rb') as f:\n"
333332" file_content = f.read()"
334333
335- #: ../../library/gzip.rst:231
334+ #: ../../library/gzip.rst:229
336335msgid "Example of how to create a compressed GZIP file::"
337336msgstr "如何建立一個壓縮的 GZIP 檔案的範例: ::"
338337
339- #: ../../library/gzip.rst:233
338+ #: ../../library/gzip.rst:231
340339msgid ""
341340"import gzip\n"
342341"content = b\" Lots of content here\" \n"
@@ -348,11 +347,11 @@ msgstr ""
348347"with gzip.open('/home/joe/file.txt.gz', 'wb') as f:\n"
349348" f.write(content)"
350349
351- #: ../../library/gzip.rst:238
350+ #: ../../library/gzip.rst:236
352351msgid "Example of how to GZIP compress an existing file::"
353352msgstr "如何壓縮一個已存在的檔案的範例: ::"
354353
355- #: ../../library/gzip.rst:240
354+ #: ../../library/gzip.rst:238
356355msgid ""
357356"import gzip\n"
358357"import shutil\n"
@@ -366,11 +365,11 @@ msgstr ""
366365" with gzip.open('/home/joe/file.txt.gz', 'wb') as f_out:\n"
367366" shutil.copyfileobj(f_in, f_out)"
368367
369- #: ../../library/gzip.rst:246
368+ #: ../../library/gzip.rst:244
370369msgid "Example of how to GZIP compress a binary string::"
371370msgstr "如何壓縮一個二進位字串的範例: ::"
372371
373- #: ../../library/gzip.rst:248
372+ #: ../../library/gzip.rst:246
374373msgid ""
375374"import gzip\n"
376375"s_in = b\" Lots of content here\" \n"
@@ -380,56 +379,56 @@ msgstr ""
380379"s_in = b\" Lots of content here\" \n"
381380"s_out = gzip.compress(s_in)"
382381
383- #: ../../library/gzip.rst:254
382+ #: ../../library/gzip.rst:252
384383msgid "Module :mod:`zlib`"
385384msgstr ":mod:`zlib` 模組"
386385
387- #: ../../library/gzip.rst:255
386+ #: ../../library/gzip.rst:253
388387msgid ""
389388"The basic data compression module needed to support the :program:`gzip` file "
390389"format."
391390msgstr ""
392391
393- #: ../../library/gzip.rst:264
392+ #: ../../library/gzip.rst:262
394393msgid "Command Line Interface"
395394msgstr "命令列介面"
396395
397- #: ../../library/gzip.rst:266
396+ #: ../../library/gzip.rst:264
398397msgid ""
399398"The :mod:`gzip` module provides a simple command line interface to compress "
400399"or decompress files."
401400msgstr ""
402401
403- #: ../../library/gzip.rst:269
402+ #: ../../library/gzip.rst:267
404403msgid "Once executed the :mod:`gzip` module keeps the input file(s)."
405404msgstr ""
406405
407- #: ../../library/gzip.rst:273
406+ #: ../../library/gzip.rst:271
408407msgid ""
409408"Add a new command line interface with a usage. By default, when you will "
410409"execute the CLI, the default compression level is 6."
411410msgstr ""
412411
413- #: ../../library/gzip.rst:277
412+ #: ../../library/gzip.rst:275
414413msgid "Command line options"
415414msgstr "命令列選項"
416415
417- #: ../../library/gzip.rst:281
416+ #: ../../library/gzip.rst:279
418417msgid "If *file* is not specified, read from :data:`sys.stdin`."
419418msgstr "如果未指定 *file*,則從 :data:`sys.stdin` 讀取。"
420419
421- #: ../../library/gzip.rst:285
420+ #: ../../library/gzip.rst:283
422421msgid "Indicates the fastest compression method (less compression)."
423422msgstr ""
424423
425- #: ../../library/gzip.rst:289
424+ #: ../../library/gzip.rst:287
426425msgid "Indicates the slowest compression method (best compression)."
427426msgstr ""
428427
429- #: ../../library/gzip.rst:293
428+ #: ../../library/gzip.rst:291
430429msgid "Decompress the given file."
431430msgstr "解壓縮指定的檔案。"
432431
433- #: ../../library/gzip.rst:297
432+ #: ../../library/gzip.rst:295
434433msgid "Show the help message."
435434msgstr "顯示幫助訊息。"
0 commit comments