@@ -7,7 +7,7 @@ msgstr ""
7
7
"Project-Id-Version : Python 3.12\n "
8
8
"Report-Msgid-Bugs-To : \n "
9
9
"POT-Creation-Date : 2023-08-30 00:04+0000\n "
10
- "PO-Revision-Date : 2023-11-22 00:45 +0800\n "
10
+ "PO-Revision-Date : 2023-12-08 00:08 +0800\n "
11
11
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
12
12
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
13
13
"tw)\n "
@@ -417,6 +417,9 @@ msgid ""
417
417
"used to specify the various categories of streams, then concrete classes "
418
418
"providing the standard stream implementations."
419
419
msgstr ""
420
+ "I/O 串流的實作是由多個類別組合成的階層結構所構成。首先是 :term:`abstract "
421
+ "base classes <abstract base class>` (抽象基底類別,ABCs),它們被用來規範各"
422
+ "種不同類型的串流,接著具體類別會提供標準串流的實作。"
420
423
421
424
#: ../../library/io.rst:258
422
425
msgid ""
@@ -425,6 +428,9 @@ msgid ""
425
428
"example, :class:`BufferedIOBase` provides unoptimized implementations of :"
426
429
"meth:`!readinto` and :meth:`!readline`."
427
430
msgstr ""
431
+ "為了協助具體串流類別的實作,抽象基底類別提供了某些方法的預設實作。舉例來說,:"
432
+ "class:`BufferedIOBase` 提供未經最佳化的 :meth:`!readinto` 與 :meth:`!"
433
+ "readline` 實作。"
428
434
429
435
#: ../../library/io.rst:263
430
436
msgid ""
@@ -434,13 +440,19 @@ msgid ""
434
440
"allowed to raise :exc:`UnsupportedOperation` if they do not support a given "
435
441
"operation."
436
442
msgstr ""
443
+ "I/O 階層結構的最上層是抽象基底類別 :class:`IOBase`。它定義了串流的基礎的介"
444
+ "面。然而,請注意,讀取串流與寫入串流之間並沒有分離;若不支援給定的操作,實作"
445
+ "是允許引發 :exc:`UnsupportedOperation` 例外的。"
437
446
438
447
#: ../../library/io.rst:268
439
448
msgid ""
440
449
"The :class:`RawIOBase` ABC extends :class:`IOBase`. It deals with the "
441
450
"reading and writing of bytes to a stream. :class:`FileIO` subclasses :class:"
442
451
"`RawIOBase` to provide an interface to files in the machine's file system."
443
452
msgstr ""
453
+ "抽象基底類別 :class:`RawIOBase` 繼承 :class:`IOBase`。此類別處理對串流的位元"
454
+ "組讀寫。:class:`FileIO` 則繼承 :class:`RawIOBase` 來提供一個介面以存取機器檔"
455
+ "案系統內的檔案。"
444
456
445
457
#: ../../library/io.rst:272
446
458
msgid ""
@@ -452,6 +464,12 @@ msgid ""
452
464
"interface to seekable streams. Another :class:`BufferedIOBase` subclass, :"
453
465
"class:`BytesIO`, is a stream of in-memory bytes."
454
466
msgstr ""
467
+ "抽象基底類別 :class:`BufferedIOBase` 繼承 :class:`IOBase`。此類別緩衝原始二進"
468
+ "位串流 (:class:`RawIOBase`)。它的子類別 :class:`BufferedWriter`、:class:"
469
+ "`BufferedReader` 與 :class:`BufferedRWPair` 分別緩衝可寫、可讀、可讀也可寫的"
470
+ "的原始二進位串流。類別 :class:`BufferedRandom` 則提供一個對可搜尋串流 "
471
+ "(seekable stream) 的緩衝介面。另一個類別 :class:`BufferedIOBase` 的子類別 :"
472
+ "class:`BytesIO`,是一個記憶體內位元組串流。"
455
473
456
474
#: ../../library/io.rst:280
457
475
msgid ""
@@ -461,6 +479,10 @@ msgid ""
461
479
"buffered text interface to a buffered raw stream (:class:`BufferedIOBase`). "
462
480
"Finally, :class:`StringIO` is an in-memory stream for text."
463
481
msgstr ""
482
+ "抽象基底類別 :class:`TextIOBase` 繼承 :class:`IOBase`。此類別處理文本位元組串"
483
+ "流,並處理字串的編碼和解碼。類別 :class:`TextIOWrapper` 繼承自 :class:"
484
+ "`TextIOBase`,這是個對緩衝原始串流 (:class:`BufferedIOBase`) 的緩衝文本介面。"
485
+ "最後,:class:`StringIO` 是個文字記憶體內串流。"
464
486
465
487
#: ../../library/io.rst:286
466
488
msgid ""
@@ -471,23 +493,23 @@ msgstr "引數名稱不是規範的一部份,只有 :func:`open` 的引數將
471
493
#: ../../library/io.rst:289
472
494
msgid ""
473
495
"The following table summarizes the ABCs provided by the :mod:`io` module:"
474
- msgstr "以下表格總結了 :mod:`io` 模組提供的抽象基礎類別 (ABC):"
496
+ msgstr "以下表格總結了 :mod:`io` 模組提供的抽象基底類別 (ABC):"
475
497
476
498
#: ../../library/io.rst:294
477
499
msgid "ABC"
478
- msgstr "ABC"
500
+ msgstr "抽象基底類別 ( ABC) "
479
501
480
502
#: ../../library/io.rst:294
481
503
msgid "Inherits"
482
- msgstr ""
504
+ msgstr "繼承 "
483
505
484
506
#: ../../library/io.rst:294
485
507
msgid "Stub Methods"
486
- msgstr ""
508
+ msgstr "Stub 方法 "
487
509
488
510
#: ../../library/io.rst:294
489
511
msgid "Mixin Methods and Properties"
490
- msgstr ""
512
+ msgstr "Mixin 方法與屬性 "
491
513
492
514
#: ../../library/io.rst:296 ../../library/io.rst:301 ../../library/io.rst:303
493
515
#: ../../library/io.rst:305
@@ -504,6 +526,9 @@ msgid ""
504
526
"``__iter__``, ``__next__``, ``readable``, ``readline``, ``readlines``, "
505
527
"``seekable``, ``tell``, ``writable``, and ``writelines``"
506
528
msgstr ""
529
+ "``close``、``closed``、``__enter__``、``__exit__``、``flush``、``isatty``、"
530
+ "``__iter__``、``__next__``、``readable``、``readline``、``readlines``、"
531
+ "``seekable``、``tell``、``writable`` 與 ``writelines``"
507
532
508
533
#: ../../library/io.rst:301
509
534
msgid ":class:`RawIOBase`"
@@ -515,7 +540,7 @@ msgstr "``readinto`` 和 ``write``"
515
540
516
541
#: ../../library/io.rst:301
517
542
msgid "Inherited :class:`IOBase` methods, ``read``, and ``readall``"
518
- msgstr ""
543
+ msgstr "繼承自 :class:`IOBase` 的方法,``read`` 與 ``readall`` "
519
544
520
545
#: ../../library/io.rst:303
521
546
msgid ":class:`BufferedIOBase`"
@@ -527,7 +552,7 @@ msgstr "``detach``\\ 、\\ ``read``\\ 、\\ ``read1`` 和 ``write``"
527
552
528
553
#: ../../library/io.rst:303
529
554
msgid "Inherited :class:`IOBase` methods, ``readinto``, and ``readinto1``"
530
- msgstr ""
555
+ msgstr "繼承自 :class:`IOBase` 的方法,``readinto`` 與 ``readinto1`` "
531
556
532
557
#: ../../library/io.rst:305
533
558
msgid ":class:`TextIOBase`"
@@ -541,21 +566,24 @@ msgstr "``detach``\\ 、\\ ``read``\\ 、\\ ``readline`` 和 ``write``"
541
566
msgid ""
542
567
"Inherited :class:`IOBase` methods, ``encoding``, ``errors``, and ``newlines``"
543
568
msgstr ""
569
+ "繼承自 :class:`IOBase` 的方法,``encoding``、``errors`` 與 ``newlines``"
544
570
545
571
#: ../../library/io.rst:312
546
572
msgid "I/O Base Classes"
547
- msgstr ""
573
+ msgstr "I/O 基礎類別 "
548
574
549
575
#: ../../library/io.rst:316
550
576
msgid "The abstract base class for all I/O classes."
551
- msgstr ""
577
+ msgstr "所有 I/O 類別的抽象基礎類別。 "
552
578
553
579
#: ../../library/io.rst:318
554
580
msgid ""
555
581
"This class provides empty abstract implementations for many methods that "
556
582
"derived classes can override selectively; the default implementations "
557
583
"represent a file that cannot be read, written or seeked."
558
584
msgstr ""
585
+ "為許多方法提供了空的抽象實作,衍伸類別可以選擇性地覆寫這些方法;預設的實作代"
586
+ "表一個無法讀取、寫入或搜尋的檔案。"
559
587
560
588
#: ../../library/io.rst:323
561
589
msgid ""
0 commit comments