7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.12\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2023-10-24 00:03 +0000\n "
10
+ "POT-Creation-Date : 2024-03-07 17:26 +0000\n "
11
11
"PO-Revision-Date : 2018-05-23 14:40+0000\n "
12
12
"
Last-Translator :
Adrian Liaw <[email protected] >\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -99,11 +99,11 @@ msgid ""
99
99
"handling behavior, and line ending(s)."
100
100
msgstr ""
101
101
102
- #: ../../library/bz2.rst:59 ../../library/bz2.rst:163
102
+ #: ../../library/bz2.rst:59 ../../library/bz2.rst:162
103
103
msgid "The ``'x'`` (exclusive creation) mode was added."
104
104
msgstr ""
105
105
106
- #: ../../library/bz2.rst:62 ../../library/bz2.rst:170
106
+ #: ../../library/bz2.rst:62 ../../library/bz2.rst:169
107
107
msgid "Accepts a :term:`path-like object`."
108
108
msgstr ""
109
109
@@ -222,93 +222,93 @@ msgid ""
222
222
"stream files."
223
223
msgstr ""
224
224
225
- #: ../../library/bz2.rst:166
225
+ #: ../../library/bz2.rst:165
226
226
msgid ""
227
227
"The :meth:`~io.BufferedIOBase.read` method now accepts an argument of "
228
228
"``None``."
229
229
msgstr ""
230
230
231
- #: ../../library/bz2.rst:173
231
+ #: ../../library/bz2.rst:172
232
232
msgid ""
233
233
"The *buffering* parameter has been removed. It was ignored and deprecated "
234
234
"since Python 3.0. Pass an open file object to control how the file is opened."
235
235
msgstr ""
236
236
237
- #: ../../library/bz2.rst:178
237
+ #: ../../library/bz2.rst:177
238
238
msgid "The *compresslevel* parameter became keyword-only."
239
239
msgstr ""
240
240
241
- #: ../../library/bz2.rst:180
241
+ #: ../../library/bz2.rst:179
242
242
msgid ""
243
243
"This class is thread unsafe in the face of multiple simultaneous readers or "
244
244
"writers, just like its equivalent classes in :mod:`gzip` and :mod:`lzma` "
245
245
"have always been."
246
246
msgstr ""
247
247
248
- #: ../../library/bz2.rst:187
248
+ #: ../../library/bz2.rst:186
249
249
msgid "Incremental (de)compression"
250
250
msgstr ""
251
251
252
- #: ../../library/bz2.rst:191
252
+ #: ../../library/bz2.rst:190
253
253
msgid ""
254
254
"Create a new compressor object. This object may be used to compress data "
255
255
"incrementally. For one-shot compression, use the :func:`compress` function "
256
256
"instead."
257
257
msgstr ""
258
258
259
- #: ../../library/bz2.rst:195 ../../library/bz2.rst:283
259
+ #: ../../library/bz2.rst:194 ../../library/bz2.rst:282
260
260
msgid ""
261
261
"*compresslevel*, if given, must be an integer between ``1`` and ``9``. The "
262
262
"default is ``9``."
263
263
msgstr ""
264
264
265
- #: ../../library/bz2.rst:200
265
+ #: ../../library/bz2.rst:199
266
266
msgid ""
267
267
"Provide data to the compressor object. Returns a chunk of compressed data if "
268
268
"possible, or an empty byte string otherwise."
269
269
msgstr ""
270
270
271
- #: ../../library/bz2.rst:203
271
+ #: ../../library/bz2.rst:202
272
272
msgid ""
273
273
"When you have finished providing data to the compressor, call the :meth:"
274
274
"`flush` method to finish the compression process."
275
275
msgstr ""
276
276
277
- #: ../../library/bz2.rst:209
277
+ #: ../../library/bz2.rst:208
278
278
msgid ""
279
279
"Finish the compression process. Returns the compressed data left in internal "
280
280
"buffers."
281
281
msgstr ""
282
282
283
- #: ../../library/bz2.rst:212
283
+ #: ../../library/bz2.rst:211
284
284
msgid ""
285
285
"The compressor object may not be used after this method has been called."
286
286
msgstr ""
287
287
288
- #: ../../library/bz2.rst:217
288
+ #: ../../library/bz2.rst:216
289
289
msgid ""
290
290
"Create a new decompressor object. This object may be used to decompress data "
291
291
"incrementally. For one-shot compression, use the :func:`decompress` function "
292
292
"instead."
293
293
msgstr ""
294
294
295
- #: ../../library/bz2.rst:222
295
+ #: ../../library/bz2.rst:221
296
296
msgid ""
297
297
"This class does not transparently handle inputs containing multiple "
298
298
"compressed streams, unlike :func:`decompress` and :class:`BZ2File`. If you "
299
299
"need to decompress a multi-stream input with :class:`BZ2Decompressor`, you "
300
300
"must use a new decompressor for each stream."
301
301
msgstr ""
302
302
303
- #: ../../library/bz2.rst:229
303
+ #: ../../library/bz2.rst:228
304
304
msgid ""
305
305
"Decompress *data* (a :term:`bytes-like object`), returning uncompressed data "
306
306
"as bytes. Some of *data* may be buffered internally, for use in later calls "
307
307
"to :meth:`decompress`. The returned data should be concatenated with the "
308
308
"output of any previous calls to :meth:`decompress`."
309
309
msgstr ""
310
310
311
- #: ../../library/bz2.rst:235
311
+ #: ../../library/bz2.rst:234
312
312
msgid ""
313
313
"If *max_length* is nonnegative, returns at most *max_length* bytes of "
314
314
"decompressed data. If this limit is reached and further output can be "
@@ -317,99 +317,99 @@ msgid ""
317
317
"``b''`` to obtain more of the output."
318
318
msgstr ""
319
319
320
- #: ../../library/bz2.rst:242
320
+ #: ../../library/bz2.rst:241
321
321
msgid ""
322
322
"If all of the input data was decompressed and returned (either because this "
323
323
"was less than *max_length* bytes, or because *max_length* was negative), "
324
324
"the :attr:`~.needs_input` attribute will be set to ``True``."
325
325
msgstr ""
326
326
327
- #: ../../library/bz2.rst:247
327
+ #: ../../library/bz2.rst:246
328
328
msgid ""
329
329
"Attempting to decompress data after the end of stream is reached raises an :"
330
330
"exc:`EOFError`. Any data found after the end of the stream is ignored and "
331
331
"saved in the :attr:`~.unused_data` attribute."
332
332
msgstr ""
333
333
334
- #: ../../library/bz2.rst:251
334
+ #: ../../library/bz2.rst:250
335
335
msgid "Added the *max_length* parameter."
336
336
msgstr "新增 *max_length* 參數。"
337
337
338
- #: ../../library/bz2.rst:256
338
+ #: ../../library/bz2.rst:255
339
339
msgid "``True`` if the end-of-stream marker has been reached."
340
340
msgstr ""
341
341
342
- #: ../../library/bz2.rst:263
342
+ #: ../../library/bz2.rst:262
343
343
msgid "Data found after the end of the compressed stream."
344
344
msgstr ""
345
345
346
- #: ../../library/bz2.rst:265
346
+ #: ../../library/bz2.rst:264
347
347
msgid ""
348
348
"If this attribute is accessed before the end of the stream has been reached, "
349
349
"its value will be ``b''``."
350
350
msgstr ""
351
351
352
- #: ../../library/bz2.rst:270
352
+ #: ../../library/bz2.rst:269
353
353
msgid ""
354
354
"``False`` if the :meth:`.decompress` method can provide more decompressed "
355
355
"data before requiring new uncompressed input."
356
356
msgstr ""
357
357
358
- #: ../../library/bz2.rst:277
358
+ #: ../../library/bz2.rst:276
359
359
msgid "One-shot (de)compression"
360
360
msgstr ""
361
361
362
- #: ../../library/bz2.rst:281
362
+ #: ../../library/bz2.rst:280
363
363
msgid "Compress *data*, a :term:`bytes-like object <bytes-like object>`."
364
364
msgstr ""
365
365
366
- #: ../../library/bz2.rst:286
366
+ #: ../../library/bz2.rst:285
367
367
msgid "For incremental compression, use a :class:`BZ2Compressor` instead."
368
368
msgstr ""
369
369
370
- #: ../../library/bz2.rst:291
370
+ #: ../../library/bz2.rst:290
371
371
msgid "Decompress *data*, a :term:`bytes-like object <bytes-like object>`."
372
372
msgstr ""
373
373
374
- #: ../../library/bz2.rst:293
374
+ #: ../../library/bz2.rst:292
375
375
msgid ""
376
376
"If *data* is the concatenation of multiple compressed streams, decompress "
377
377
"all of the streams."
378
378
msgstr ""
379
379
380
- #: ../../library/bz2.rst:296
380
+ #: ../../library/bz2.rst:295
381
381
msgid "For incremental decompression, use a :class:`BZ2Decompressor` instead."
382
382
msgstr ""
383
383
384
- #: ../../library/bz2.rst:298
384
+ #: ../../library/bz2.rst:297
385
385
msgid "Support for multi-stream inputs was added."
386
386
msgstr ""
387
387
388
- #: ../../library/bz2.rst:304
388
+ #: ../../library/bz2.rst:303
389
389
msgid "Examples of usage"
390
390
msgstr "用法範例"
391
391
392
- #: ../../library/bz2.rst:306
392
+ #: ../../library/bz2.rst:305
393
393
msgid "Below are some examples of typical usage of the :mod:`bz2` module."
394
394
msgstr ""
395
395
396
- #: ../../library/bz2.rst:308
396
+ #: ../../library/bz2.rst:307
397
397
msgid ""
398
398
"Using :func:`compress` and :func:`decompress` to demonstrate round-trip "
399
399
"compression:"
400
400
msgstr ""
401
401
402
- #: ../../library/bz2.rst:326
402
+ #: ../../library/bz2.rst:325
403
403
msgid "Using :class:`BZ2Compressor` for incremental compression:"
404
404
msgstr ""
405
405
406
- #: ../../library/bz2.rst:344
406
+ #: ../../library/bz2.rst:343
407
407
msgid ""
408
408
"The example above uses a very \" nonrandom\" stream of data (a stream of "
409
409
"``b\" z\" `` chunks). Random data tends to compress poorly, while ordered, "
410
410
"repetitive data usually yields a high compression ratio."
411
411
msgstr ""
412
412
413
- #: ../../library/bz2.rst:348
413
+ #: ../../library/bz2.rst:347
414
414
msgid "Writing and reading a bzip2-compressed file in binary mode:"
415
415
msgstr ""
0 commit comments