diff --git a/library/io.po b/library/io.po index 2291d2cf67a..738c69063ad 100644 --- a/library/io.po +++ b/library/io.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-07-22 00:04+0000\n" -"PO-Revision-Date: 2023-07-31 18:24+0800\n" +"PO-Revision-Date: 2023-08-01 12:20+0800\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -266,6 +266,11 @@ msgid "" "`EncodingWarning` if they don't pass an ``encoding``. However, please " "consider using UTF-8 by default (i.e. ``encoding=\"utf-8\"``) for new APIs." msgstr "" +"如果你正在提供一個使用 :func:`open` 或 :class:`TextIOWrapper` 且傳遞 " +"``encoding=None`` 作為參數的 API,你可以使用 :func:`text_encoding`。如此一來" +"如果 API 的呼叫方沒有傳遞 ``encoding``,呼叫方就會發出一個 :exc:" +"`EncodingWarning`。然而,對於新的 API,請考慮預設使用 UTF-8(即 " +"``encoding=\"utf-8\"``)。" #: ../../library/io.rst:162 msgid "High-level Module Interface" @@ -277,6 +282,8 @@ msgid "" "classes. :func:`open` uses the file's blksize (as obtained by :func:`os." "stat`) if possible." msgstr "" +"一個包含模組中緩衝 I/O 類別所使用的預設緩衝區大小的整數。若可能的話,:func:" +"`open` 會使用檔案的 blksize (透過 :func:`os.stat` 取得)。" #: ../../library/io.rst:173 msgid "This is an alias for the builtin :func:`open` function." @@ -296,6 +303,9 @@ msgid "" "arguments ``path``, ``mode`` and ``flags``. The ``mode`` and ``flags`` " "arguments may have been modified or inferred from the original call." msgstr "" +"此函式會引發一個帶有引數 ``path``、``mode`` 以及 ``flags`` 的\\ :ref:`稽核事件 " +"(auditing event) ` ``open``。``mode`` 與 ``flags`` 引數可能已經被修" +"改或者從原始呼叫中被推斷出來。" #: ../../library/io.rst:184 msgid "" @@ -345,6 +355,8 @@ msgid "" "In this example, an :class:`EncodingWarning` is emitted for the caller of " "``read_text()``." msgstr "" +"在此範例中,對於 ``read_text()`` 的呼叫方會引發一個 :class:" +"`EncodingWarning`。" #: ../../library/io.rst:220 msgid "See :ref:`io-text-encoding` for more information." @@ -355,18 +367,22 @@ msgid "" ":func:`text_encoding` returns \"utf-8\" when UTF-8 mode is enabled and " "*encoding* is ``None``." msgstr "" +"當 UTF-8 模式啟用且 *encoding* 為 ``None`` 時,:func:`text_encoding` 會回傳 " +"\"utf-8\"。" #: ../../library/io.rst:231 msgid "" "This is a compatibility alias for the builtin :exc:`BlockingIOError` " "exception." -msgstr "" +msgstr "這是內建的 :exc:`BlockingIOError` 例外的相容性別名。" #: ../../library/io.rst:237 msgid "" "An exception inheriting :exc:`OSError` and :exc:`ValueError` that is raised " "when an unsupported operation is called on a stream." msgstr "" +"當在資料串流上呼叫不支援的操作時,會引發繼承自 :exc:`OSError` 與 :exc:" +"`ValueError` 的例外。" #: ../../library/io.rst:244 msgid ":mod:`sys`" @@ -377,10 +393,12 @@ msgid "" "contains the standard IO streams: :data:`sys.stdin`, :data:`sys.stdout`, " "and :data:`sys.stderr`." msgstr "" +"包含標準的 IO 資料串流::data:`sys.stdin`、:data:`sys.stdout` 以及 :data:`sys." +"stderr`。" #: ../../library/io.rst:249 msgid "Class hierarchy" -msgstr "" +msgstr "類別階層" #: ../../library/io.rst:251 msgid "" @@ -438,12 +456,12 @@ msgstr "" msgid "" "Argument names are not part of the specification, and only the arguments of :" "func:`open` are intended to be used as keyword arguments." -msgstr "" +msgstr "引數名稱不是規範的一部份,只有 :func:`open` 的引數將作為關鍵字引數。" #: ../../library/io.rst:289 msgid "" "The following table summarizes the ABCs provided by the :mod:`io` module:" -msgstr "" +msgstr "以下表格總結了 :mod:`io` 模組提供的抽象基礎類別 (ABC):" #: ../../library/io.rst:294 msgid "ABC"