@@ -7,7 +7,7 @@ msgstr ""
7
7
"Project-Id-Version : Python 3.12\n "
8
8
"Report-Msgid-Bugs-To : \n "
9
9
"POT-Creation-Date : 2023-08-30 00:04+0000\n "
10
- "PO-Revision-Date : 2023-08-01 12:20 +0800\n "
10
+ "PO-Revision-Date : 2023-11-22 00:45 +0800\n "
11
11
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
12
12
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
13
13
"tw)\n "
@@ -16,7 +16,7 @@ msgstr ""
16
16
"Content-Type : text/plain; charset=UTF-8\n "
17
17
"Content-Transfer-Encoding : 8bit\n "
18
18
"Plural-Forms : nplurals=1; plural=0;\n "
19
- "X-Generator : Poedit 3.3.2 \n "
19
+ "X-Generator : Poedit 3.4.1 \n "
20
20
21
21
#: ../../library/io.rst:2
22
22
msgid ":mod:`io` --- Core tools for working with streams"
@@ -328,6 +328,10 @@ msgid ""
328
328
"same as ``open(path, 'rb')``. Overriding the behavior is intended for "
329
329
"additional validation or preprocessing of the file."
330
330
msgstr ""
331
+ "這個函式的行為可能會被之前對 :c:func:`PyFile_SetOpenCodeHook` 的呼叫覆寫。然"
332
+ "而,假設 *path* 是個 :class:`str` 且為絕對路徑,則 ``open_code(path)`` 總是"
333
+ "與 ``open(path, 'rb')`` 有相同行為。覆寫這個行為是為了對檔案進行額外驗證或預"
334
+ "處理。"
331
335
332
336
#: ../../library/io.rst:200
333
337
msgid ""
@@ -343,13 +347,18 @@ msgid ""
343
347
"returns ``\" locale\" `` or ``\" utf-8\" `` depending on :ref:`UTF-8 Mode <utf8-"
344
348
"mode>`."
345
349
msgstr ""
350
+ "若 *encoding* 不為 ``None``,此函式將回傳 *encoding*。否則,將根據 :ref:"
351
+ "`UTF-8 Mode <utf8-mode>` 回傳 ``\" locale\" `` 或 ``\" utf-8\" ``。"
346
352
347
353
#: ../../library/io.rst:207
348
354
msgid ""
349
355
"This function emits an :class:`EncodingWarning` if :data:`sys.flags."
350
356
"warn_default_encoding <sys.flags>` is true and *encoding* is ``None``. "
351
357
"*stacklevel* specifies where the warning is emitted. For example::"
352
358
msgstr ""
359
+ "若 :data:`sys.flags.warn_default_encoding <sys.flags>` 為真,且 *encoding* "
360
+ "為 ``None``,此函式會發出一個 :class:`EncodingWarning`。*stacklevel* 指定警告"
361
+ "在哪層發出。範例: ::"
353
362
354
363
#: ../../library/io.rst:217
355
364
msgid ""
0 commit comments