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

Commit3d1b20d

Browse files
Add more translations of library/io (#749)
Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
1 parent6430006 commit3d1b20d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

‎library/io.po

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,10 @@ msgid ""
593593
"raise a :exc:`ValueError` (or :exc:`UnsupportedOperation`) when operations "
594594
"they do not support are called."
595595
msgstr""
596+
"即使 :class:`IOBase` 因為實作的簽名差異巨大而沒有宣告 :meth:`!read` 或 :meth:"
597+
"`!write` 方法,實作與用戶端應把這些方法視為介面的一部份。此外,當呼叫不被它們"
598+
"支援的操作時,可能會引發 :exc:`ValueError` (或 :exc:`UnsupportedOperation`)"
599+
"例外。"
596600

597601
#:../../library/io.rst:329
598602
msgid""
@@ -606,6 +610,8 @@ msgid ""
606610
"Note that calling any method (even inquiries) on a closed stream is "
607611
"undefined. Implementations may raise :exc:`ValueError` in this case."
608612
msgstr""
613+
"請注意,在一個已經關閉的串流上呼叫任何方法(即使只是查詢)都是未定義的。在這"
614+
"種情況下,實作可能會引發 :exc:`ValueError` 例外。"
609615

610616
#:../../library/io.rst:336
611617
msgid""
@@ -622,23 +628,27 @@ msgid ""
622628
"keyword:`with` statement. In this example, *file* is closed after the :"
623629
"keyword:`!with` statement's suite is finished---even if an exception occurs::"
624630
msgstr""
631+
":class:`IOBase` 也是個情境管理器,因此支援 :keyword:`with` 陳述式。在這個例子"
632+
"中,*file* 會在 :keyword:`!with` 陳述式執行完畢後關閉——即使發生了異常。"
625633

626634
#:../../library/io.rst:349
627635
msgid":class:`IOBase` provides these data attributes and methods:"
628-
msgstr""
636+
msgstr":class:`IOBase` 提供這些資料屬性與方法:"
629637

630638
#:../../library/io.rst:353
631639
msgid""
632640
"Flush and close this stream. This method has no effect if the file is "
633641
"already closed. Once the file is closed, any operation on the file (e.g. "
634642
"reading or writing) will raise a :exc:`ValueError`."
635643
msgstr""
644+
"清除並關閉這個串流。若檔案已經關閉,則此方法沒有作用。一旦檔案被關閉,任何對"
645+
"檔案的操作(例如讀取或寫入)將引發 :exc:`ValueError` 異常。"
636646

637647
#:../../library/io.rst:357
638648
msgid""
639649
"As a convenience, it is allowed to call this method more than once; only the "
640650
"first call, however, will have an effect."
641-
msgstr""
651+
msgstr"為了方便起見,允許多次呼叫這個方法;然而,只有第一次呼叫會有效果。"
642652

643653
#:../../library/io.rst:362
644654
msgid"``True`` if the stream is closed."

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp