Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6acde35

Browse files
committed
Add more translations of library/io
1 parent9187e57 commit6acde35

File tree

1 file changed

+37
-9
lines changed

1 file changed

+37
-9
lines changed

‎library/io.po

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgstr ""
77
"Project-Id-Version:Python 3.12\n"
88
"Report-Msgid-Bugs-To:\n"
99
"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-11-25 16:17+0800\n"
1111
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1212
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1313
"tw)\n"
@@ -417,6 +417,9 @@ msgid ""
417417
"used to specify the various categories of streams, then concrete classes "
418418
"providing the standard stream implementations."
419419
msgstr""
420+
"I/O 流的實作是由多個類別組合成的階層結構所構成。首先是 :term:`abstract base "
421+
"classes <abstract base class>` (抽象基礎類別,ABCs),它們被用來規範各種不同"
422+
"類型的流,接著具體類別會提供標準流的實作。"
420423

421424
#:../../library/io.rst:258
422425
msgid""
@@ -425,6 +428,9 @@ msgid ""
425428
"example, :class:`BufferedIOBase` provides unoptimized implementations of :"
426429
"meth:`!readinto` and :meth:`!readline`."
427430
msgstr""
431+
"為了協助具體流類別的實作,抽象基礎類別提供了某些方法的預設實作。舉例來說,:"
432+
"class:`BufferedIOBase` 提供未經最佳化的 :meth:`!readinto` 與 :meth:`!"
433+
"readline` 實作。"
428434

429435
#:../../library/io.rst:263
430436
msgid""
@@ -434,13 +440,19 @@ msgid ""
434440
"allowed to raise :exc:`UnsupportedOperation` if they do not support a given "
435441
"operation."
436442
msgstr""
443+
"I/O 階層結構的最上層是抽象基礎類別 :class:`IOBase`。它定義了流的基礎的介面。"
444+
"然而,請注意,讀取流與寫入流之間並沒有分離;若不支援給定的操作,實作是允許拋"
445+
"出 :exc:`UnsupportedOperation` 例外的。"
437446

438447
#:../../library/io.rst:268
439448
msgid""
440449
"The :class:`RawIOBase` ABC extends :class:`IOBase`. It deals with the "
441450
"reading and writing of bytes to a stream. :class:`FileIO` subclasses :class:"
442451
"`RawIOBase` to provide an interface to files in the machine's file system."
443452
msgstr""
453+
"抽象基礎類別 :class:`RawIOBase` 繼承 :class:`IOBase`。此類別處理對流的位元組"
454+
"讀寫。:class:`FileIO` 則繼承 :class:`RawIOBase` 來提供一個介面以存取機器檔案"
455+
"系統內的檔案。"
444456

445457
#:../../library/io.rst:272
446458
msgid""
@@ -452,6 +464,12 @@ msgid ""
452464
"interface to seekable streams. Another :class:`BufferedIOBase` subclass, :"
453465
"class:`BytesIO`, is a stream of in-memory bytes."
454466
msgstr""
467+
"抽象基礎類別 :class:`BufferedIOBase` 繼承 :class:`IOBase`。此類別緩衝原始二進"
468+
"制流 (:class:`RawIOBase`)。它的子類別 :class:`BufferedWriter`、:class:"
469+
"`BufferedReader` 與 :class:`BufferedRWPair` 分別緩衝可寫、可讀、可讀也可寫的"
470+
"的原始二進制流。類別 :class:`BufferedRandom` 則提供一個對可搜尋流 (seekable "
471+
"stream) 的緩衝介面。另一個類別 :class:`BufferedIOBase` 的子類別 :class:"
472+
"`BytesIO`,是一個記憶體內位元組流。"
455473

456474
#:../../library/io.rst:280
457475
msgid""
@@ -461,6 +479,10 @@ msgid ""
461479
"buffered text interface to a buffered raw stream (:class:`BufferedIOBase`). "
462480
"Finally, :class:`StringIO` is an in-memory stream for text."
463481
msgstr""
482+
"抽象基礎類別 :class:`TextIOBase` 繼承 :class:`IOBase`。此類別處理文本位元組"
483+
"流,並處理字串的編碼和解碼。類別 :class:`TextIOWrapper` 繼承自 :class:"
484+
"`TextIOBase`,這是個對緩衝原始流 (:class:`BufferedIOBase`) 的緩衝文本介面。最"
485+
"後,:class:`StringIO` 是個文字記憶體內流。"
464486

465487
#:../../library/io.rst:286
466488
msgid""
@@ -475,19 +497,19 @@ msgstr "以下表格總結了 :mod:`io` 模組提供的抽象基礎類別 (ABC)
475497

476498
#:../../library/io.rst:294
477499
msgid"ABC"
478-
msgstr"ABC"
500+
msgstr"抽象基礎類別 (ABC)"
479501

480502
#:../../library/io.rst:294
481503
msgid"Inherits"
482-
msgstr""
504+
msgstr"繼承"
483505

484506
#:../../library/io.rst:294
485507
msgid"Stub Methods"
486-
msgstr""
508+
msgstr"Stub 方法"
487509

488510
#:../../library/io.rst:294
489511
msgid"Mixin Methods and Properties"
490-
msgstr""
512+
msgstr"Mixin 方法與屬性"
491513

492514
#:../../library/io.rst:296../../library/io.rst:301../../library/io.rst:303
493515
#:../../library/io.rst:305
@@ -504,6 +526,9 @@ msgid ""
504526
"``__iter__``, ``__next__``, ``readable``, ``readline``, ``readlines``, "
505527
"``seekable``, ``tell``, ``writable``, and ``writelines``"
506528
msgstr""
529+
"``close``、``closed``、``__enter__``、``__exit__``、``flush``、``isatty``、"
530+
"``__iter__``、``__next__``、``readable``、``readline``、``readlines``、"
531+
"``seekable``、``tell``、``writable`` 與 ``writelines``"
507532

508533
#:../../library/io.rst:301
509534
msgid":class:`RawIOBase`"
@@ -515,7 +540,7 @@ msgstr "``readinto`` 和 ``write``"
515540

516541
#:../../library/io.rst:301
517542
msgid"Inherited :class:`IOBase` methods, ``read``, and ``readall``"
518-
msgstr""
543+
msgstr"繼承自 :class:`IOBase` 的方法,``read`` 與 ``readall``"
519544

520545
#:../../library/io.rst:303
521546
msgid":class:`BufferedIOBase`"
@@ -527,7 +552,7 @@ msgstr "``detach``\\ 、\\ ``read``\\ 、\\ ``read1`` 和 ``write``"
527552

528553
#:../../library/io.rst:303
529554
msgid"Inherited :class:`IOBase` methods, ``readinto``, and ``readinto1``"
530-
msgstr""
555+
msgstr"繼承自 :class:`IOBase` 的方法,``readinto`` 與 ``readinto1``"
531556

532557
#:../../library/io.rst:305
533558
msgid":class:`TextIOBase`"
@@ -541,21 +566,24 @@ msgstr "``detach``\\ 、\\ ``read``\\ 、\\ ``readline`` 和 ``write``"
541566
msgid""
542567
"Inherited :class:`IOBase` methods, ``encoding``, ``errors``, and ``newlines``"
543568
msgstr""
569+
"繼承自 :class:`IOBase` 的方法,``encoding``、``errors`` 與 ``newlines``"
544570

545571
#:../../library/io.rst:312
546572
msgid"I/O Base Classes"
547-
msgstr""
573+
msgstr"I/O 基礎類別"
548574

549575
#:../../library/io.rst:316
550576
msgid"The abstract base class for all I/O classes."
551-
msgstr""
577+
msgstr"所有 I/O 類別的抽象基礎類別。"
552578

553579
#:../../library/io.rst:318
554580
msgid""
555581
"This class provides empty abstract implementations for many methods that "
556582
"derived classes can override selectively; the default implementations "
557583
"represent a file that cannot be read, written or seeked."
558584
msgstr""
585+
"為許多方法提供了空的抽象實作,衍伸類別可以選擇性地覆寫這些方法;預設的實作代"
586+
"表一個無法讀取、寫入或搜尋的檔案。"
559587

560588
#:../../library/io.rst:323
561589
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp