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

Commita6723dd

Browse files
Add more translations of library/io (#752)
* Add more translations of library/io* Revise the translations of library/io* Apply suggestions from code review---------Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
1 parentd89b651 commita6723dd

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

‎library/io.po

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -652,63 +652,76 @@ msgstr "為了方便起見,允許多次呼叫這個方法;然而,只有第
652652

653653
#:../../library/io.rst:362
654654
msgid"``True`` if the stream is closed."
655-
msgstr""
655+
msgstr"如果串流已關閉,則為 ``True``。"
656656

657657
#:../../library/io.rst:366
658658
msgid""
659659
"Return the underlying file descriptor (an integer) of the stream if it "
660660
"exists. An :exc:`OSError` is raised if the IO object does not use a file "
661661
"descriptor."
662662
msgstr""
663+
"如果串流存在,則回傳其底層的檔案描述器(一個整數)。如果 IO 物件不使用檔案描"
664+
"述器,則會引發一個 :exc:`OSError` 例外。"
663665

664666
#:../../library/io.rst:372
665667
msgid""
666668
"Flush the write buffers of the stream if applicable. This does nothing for "
667669
"read-only and non-blocking streams."
668670
msgstr""
671+
"如果適用,清空串流的寫入緩衝區。對於唯讀和非阻塞串流,此操作不會執行任何操"
672+
"作。"
669673

670674
#:../../library/io.rst:377
671675
msgid""
672676
"Return ``True`` if the stream is interactive (i.e., connected to a terminal/"
673677
"tty device)."
674-
msgstr""
678+
msgstr"如果串流是互動式的(即連接到終端機/tty 設備),則回傳 ``True``。"
675679

676680
#:../../library/io.rst:382
677681
msgid""
678682
"Return ``True`` if the stream can be read from. If ``False``, :meth:`!read` "
679683
"will raise :exc:`OSError`."
680684
msgstr""
685+
"如果串流可以被讀取,則回傳 ``True``。如果是 ``False``,:meth:`!read` 將會引"
686+
"發 :exc:`OSError` 例外。"
681687

682688
#:../../library/io.rst:387
683689
msgid""
684690
"Read and return one line from the stream. If *size* is specified, at most "
685691
"*size* bytes will be read."
686-
msgstr""
692+
msgstr"從串流讀取並回傳一行。如果指定了 *size*,則最多讀取 *size* 個位元組。"
687693

688694
#:../../library/io.rst:390
689695
msgid""
690696
"The line terminator is always ``b'\\n'`` for binary files; for text files, "
691697
"the *newline* argument to :func:`open` can be used to select the line "
692698
"terminator(s) recognized."
693699
msgstr""
700+
"對於二進位檔案,行結束符總是 ``b'\\n'``;對於文字檔案,可以使用 :func:`open` "
701+
"函式的 *newline* 引數來選擇識別的行結束符號。"
694702

695703
#:../../library/io.rst:396
696704
msgid""
697705
"Read and return a list of lines from the stream. *hint* can be specified to "
698706
"control the number of lines read: no more lines will be read if the total "
699707
"size (in bytes/characters) of all lines so far exceeds *hint*."
700708
msgstr""
709+
"從串流讀取並回傳一個含有一或多行的 list。可以指定 *hint* 來控制讀取的行數:如"
710+
"果到目前為止所有行的總大小(以位元組/字元計)超過 *hint*,則不會再讀取更多"
711+
"行。"
701712

702713
#:../../library/io.rst:400
703714
msgid""
704715
"*hint* values of ``0`` or less, as well as ``None``, are treated as no hint."
705-
msgstr""
716+
msgstr"*hint* 值為 ``0`` 或更小,以及 ``None``,都被視為沒有提供 hint。"
706717

707718
#:../../library/io.rst:403
708719
msgid""
709720
"Note that it's already possible to iterate on file objects using ``for line "
710721
"in file: ...`` without calling :meth:`!file.readlines`."
711722
msgstr""
723+
"請注意,已經可以使用 ``for line in file: ...`` 在檔案物件上進行疊代,而不一定"
724+
"需要呼叫 :meth:`!file.readlines`。"
712725

713726
#:../../library/io.rst:408
714727
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp