Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions c-api/file.po
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ msgid ""
"to the :func:`io.open` function documentation."
msgstr ""
"從已打開檔案 *fd* 的檔案描述器建立一個 Python 檔案物件。引數 *name*、"
"*encoding*、*errors* 和 *newline* 可以為 ``NULL`` 以使用預設值; *buffering* "
"可以是 *-1* 以使用預設值。 *name* 被忽略並保留以實作向後相容性。失敗時回傳 "
"*encoding*、*errors* 和 *newline* 可以為 ``NULL`` 以使用預設值;*buffering* "
"可以是 *-1* 以使用預設值。*name* 被忽略並保留以實作向後相容性。失敗時回傳 "
"``NULL``。有關引數的更全面描述,請參閱 :func:`io.open` 函式文件。"

#: ../../c-api/file.rst:31
Expand Down Expand Up @@ -93,7 +93,7 @@ msgid ""
"regardless of length, but :exc:`EOFError` is raised if the end of the file "
"is reached immediately."
msgstr ""
"相當於 ``p.readline([n])``,這個函式從物件 *p* 中讀取一行。 *p* 可以是檔案物"
"相當於 ``p.readline([n])``,這個函式從物件 *p* 中讀取一行。*p* 可以是檔案物"
"件或任何具有 :meth:`~io.IOBase.readline` 方法的物件。如果 *n* 為 ``0``,則不"
"管該行的長度都只會讀取一行。如果 *n* 大於 ``0``,則不會從檔案中讀取超過 *n* "
"個位元組;可以回傳該行的一部分。在這兩種情況下,如果立即到達檔案末尾,則回傳"
Expand Down Expand Up @@ -197,12 +197,12 @@ msgid ""
"is :c:macro:`Py_PRINT_RAW`; if given, the :func:`str` of the object is "
"written instead of the :func:`repr`."
msgstr ""
"將物件 *obj* 寫入檔案物件 *p*。 *flags* 唯一支援的旗標是 :c:macro:"
"將物件 *obj* 寫入檔案物件 *p*。*flags* 唯一支援的旗標是 :c:macro:"
"`Py_PRINT_RAW`;如果有給定,則寫入物件的 :func:`str` 而不是 :func:`repr`。"

#: ../../c-api/file.rst:128
msgid "If *obj* is ``NULL``, write the string ``\"<NULL>\"``."
msgstr ""
msgstr "如果 *obj* 為 ``NULL``,則寫入字串 ``\"<NULL>\"``。"

#: ../../c-api/file.rst:130
msgid ""
Expand All @@ -215,8 +215,8 @@ msgid ""
"Write string *s* to file object *p*. Return ``0`` on success or ``-1`` on "
"failure; the appropriate exception will be set."
msgstr ""
"寫入字串 *s* 到 檔案物件 *p*。當成功時回傳 0,而當失敗時回傳 -1,並會設定合適"
"的例外狀況。"
"寫入字串 *s* 到檔案物件 *p*。當成功時回傳 ``0``,而當失敗時回傳 ``-1``,並會"
"設定合適的例外狀況。"

#: ../../c-api/file.rst:140
msgid "Soft-deprecated API"
Expand Down