@@ -1119,14 +1119,13 @@ msgstr ""
11191119"閱 :ref:`typesmapping`。"
11201120
11211121#: ../../builtins/functions.rst:500
1122- #, fuzzy
11231122msgid ""
11241123"For other containers see the built-in :class:`frozendict`, :class:`list`, :"
11251124"class:`set`, and :class:`tuple` classes, as well as the :mod:`collections` "
11261125"module."
11271126msgstr ""
1128- "關於其他容器,請參閱內建的 :class:`frozenset `、:class:`list`、:class:`tuple ` "
1129- "和 :class:`dict ` 類別,以及 :mod:`collections` 模組。"
1127+ "關於其他容器,請參閱內建的 :class:`frozendict `、:class:`list`、:class:`set ` "
1128+ "和 :class:`tuple ` 類別,以及 :mod:`collections` 模組。"
11301129
11311130#: ../../builtins/functions.rst:507
11321131msgid ""
@@ -1641,22 +1640,20 @@ msgstr ""
16411640"發 :exc:`TypeError`。"
16421641
16431642#: ../../builtins/functions.rst:889
1644- #, fuzzy
16451643msgid ""
16461644"Create a new frozen dictionary. The :class:`frozendict` object is a built-"
16471645"in class. See also :ref:`typesmapping` for documentation about this class."
16481646msgstr ""
1649- "建立一個新的字典 。:class:`dict` 物件是字典類別。關於此類別的說明文件,亦請參 "
1650- "閱 :ref:`typesmapping`。"
1647+ "建立一個新的凍結字典 。:class:`frozendict` 物件是一個內建類別。關於此類別的說 "
1648+ "明文件,亦請參閱 :ref:`typesmapping`。"
16511649
16521650#: ../../builtins/functions.rst:892
1653- #, fuzzy
16541651msgid ""
16551652"For other containers see the built-in :class:`dict`, :class:`list`, :class:"
16561653"`set`, and :class:`tuple` classes, as well as the :mod:`collections` module."
16571654msgstr ""
1658- "其他容器型別,請參見內建的 :class:`list `、:class:`set` 和 :class:`tuple ` "
1659- "class,以及 :mod:`collections` module 。"
1655+ "關於其他容器,請參閱內建的 :class:`dict `、:class:`list`、 :class:`set ` "
1656+ "和 : class:`tuple` 類別 ,以及 :mod:`collections` 模組 。"
16601657
16611658#: ../../builtins/functions.rst:902
16621659msgid ""
@@ -2033,7 +2030,6 @@ msgid "*classinfo* can be a :ref:`types-union`."
20332030msgstr "*classinfo* 可以是一個 :ref:`types-union`。"
20342031
20352032#: ../../builtins/functions.rst:1143
2036- #, fuzzy
20372033msgid ""
20382034"Return ``True`` if *cls* is a subclass (direct, indirect, or :term:`virtual "
20392035"<abstract base class>`) of *classinfo*. A class is considered a subclass of "
@@ -2042,11 +2038,10 @@ msgid ""
20422038"is a subclass of any entry in *classinfo*. In any other case, a :exc:"
20432039"`TypeError` exception is raised."
20442040msgstr ""
2045- "如果 *class* 是 *classinfo* 的 subclass(直接、間接或 :term:`virtual "
2046- "<abstract base class>`),則回傳 ``True``。*classinfo* 可以是 class 物件的 "
2047- "tuple(或遞迴地其他類似 tuple)或是一個 :ref:`types-union`,此時若 *class* "
2048- "是 *classinfo* 中任一元素的 subclass 時則回傳 ``True``。其他情況,會引發 :"
2049- "exc:`TypeError`。"
2041+ "如果 *cls* 是 *classinfo* 的 subclass(直接、間接或 :term:`virtual <abstract "
2042+ "base class>`),則回傳 ``True``。*classinfo* 可以是 class 物件的 tuple(或遞"
2043+ "迴地其他類似 tuple)或是一個 :ref:`types-union`,此時若 *cls* 是 *classinfo* "
2044+ "中任一元素的 subclass 時則回傳 ``True``。其他情況,會引發 :exc:`TypeError`。"
20502045
20512046#: ../../builtins/functions.rst:1158
20522047msgid ""
@@ -2390,7 +2385,6 @@ msgstr ""
23902385"閉,除非 *closefd* 被設為 ``False``。)"
23912386
23922387#: ../../builtins/functions.rst:1401
2393- #, fuzzy
23942388msgid ""
23952389"*mode* is an optional string that specifies the mode in which the file is "
23962390"opened. It defaults to ``'r'`` which means open for reading in text mode. "
@@ -2407,9 +2401,10 @@ msgstr ""
24072401"以文字模式開啟並讀取。其他常見模式有:寫入 ``'w'``\\ (會捨去已經存在的檔"
24082402"案)、唯一性建立 ``'x'``、追加寫入 ``'a'``\\ (在\\ *一些* Unix 系統上,無論"
24092403"目前的檔案指標在什麼位置,*所有* 寫入都會追加到檔案末尾)。在文字模式,如果沒"
2410- "有指定 *encoding*,則根據電腦平臺來決定使用的編碼:呼叫 :func:`locale."
2411- "getencoding` 來取得目前的本地編碼。(要讀取和寫入原始 bytes,請使用二進位制模"
2412- "式且不要指定 *encoding*。)可用的模式有:"
2404+ "有指定 *encoding*,預設會使用 UTF-8;如果停用了 :ref:`Python UTF-8 模式 "
2405+ "<utf8-mode>`,則會呼叫 :func:`locale.getencoding` 來取得目前的本地編碼。(要"
2406+ "讀取和寫入原始 bytes,請使用二進位制模式且不要指定 *encoding*。)可用的模式"
2407+ "有:"
24132408
24142409#: ../../builtins/functions.rst:1419
24152410msgid "Character"
@@ -2486,7 +2481,6 @@ msgstr ""
24862481"容。"
24872482
24882483#: ../../builtins/functions.rst:1434
2489- #, fuzzy
24902484msgid ""
24912485"As mentioned in the :ref:`io-overview`, Python distinguishes between binary "
24922486"and text I/O. Files opened in binary mode (including ``'b'`` in the *mode* "
@@ -2499,8 +2493,8 @@ msgstr ""
24992493"如\\ :ref:`io-overview`\\ 中所述,Python 能區分二進制和文字的 I/O。在二進制模"
25002494"式下開啟的檔案(*mode* 引數中含有 ``'b'``)會將其內容以 :class:`bytes` 物件回"
25012495"傳,而不進行任何解碼。在文字模式(預設情況,或當 *mode* 引數中含有 "
2502- "``'t'``),檔案的內容會以 :class:`str` 回傳,其位元組已經先被解碼,使用的是取 "
2503- "決於平台的編碼系統或是給定的 *encoding*。"
2496+ "``'t'``),檔案的內容會以 :class:`str` 回傳,其位元組已經先被解碼,使用的是預 "
2497+ "設的編碼系統或是給定的 *encoding*。"
25042498
25052499#: ../../builtins/functions.rst:1444
25062500msgid ""
@@ -2553,7 +2547,6 @@ msgstr ""
25532547"衝。其他文字檔則使用上述的二進制檔案緩衝策略。"
25542548
25552549#: ../../builtins/functions.rst:1467
2556- #, fuzzy
25572550msgid ""
25582551"*encoding* is the name of the encoding used to decode or encode the file. "
25592552"This should only be used in text mode. The default encoding is UTF-8; if :"
@@ -2564,12 +2557,13 @@ msgid ""
25642557"module for the list of supported encodings."
25652558msgstr ""
25662559"*encoding* 是用於解碼或編碼檔案的編碼系統之名稱。它只應該在文字模式下使用。預"
2567- "設的編碼系統會取決於平台(根據 :func:`locale.getencoding` 回傳的內容),但 "
2568- "Python 支援的任何 :term:`text encoding`\\ (文字編碼)都是可以使用的。關於支"
2569- "援的編碼系統清單,請參閱 :mod:`codecs` module。"
2560+ "設的編碼系統是 UTF-8;如果停用了 :ref:`Python UTF-8 模式 <utf8-mode>`,預設的"
2561+ "編碼系統會取決於平台(根據 :func:`locale.getencoding` 回傳的內容)。Python 支"
2562+ "援的任何 :term:`text encoding`\\ (文字編碼)都是可以使用的,而 "
2563+ "``encoding=\" locale\" `` 會明確指定使用目前的本地編碼。關於支援的編碼系統清"
2564+ "單,請參閱 :mod:`codecs` module。"
25702565
25712566#: ../../builtins/functions.rst:1475
2572- #, fuzzy
25732567msgid ""
25742568"*errors* is an optional string that specifies how encoding and decoding "
25752569"errors are to be handled—this cannot be used in binary mode. A variety of "
@@ -2578,9 +2572,9 @@ msgid ""
25782572"standard names can be found in :ref:`error-handlers`."
25792573msgstr ""
25802574"*errors* 是一個選擇性的字串,用於指定要如何處理編碼和解碼的錯誤——它不能在二進"
2581- "制模式下使用。有許多不同的標準錯誤處理程式( error handler,在 \\ :ref:`error- "
2582- "handlers` \\ 有列出清單),不過任何已註冊到 :func:`codecs.register_error` 的錯 "
2583- "誤處理程式名稱也都是有效的。標準的名稱包括: "
2575+ "制模式下使用。有許多不同的標準錯誤處理程式 ( error handler),不過任何已註冊 "
2576+ "到 :func:`codecs.register_error` 的錯誤處理程式名稱也都是有效的。標準的名稱可 "
2577+ "以在 \\ :ref:`error-handlers` \\ 中找到。 "
25842578
25852579#: ../../builtins/functions.rst:1487
25862580msgid ""
@@ -3275,11 +3269,10 @@ msgstr ""
32753269"MISSING"
32763270
32773271#: ../../builtins/functions.rst:1877
3278- #, fuzzy
32793272msgid ""
32803273"The optional *repr* argument can be used to specify a different "
32813274"representation::"
3282- msgstr "選擇性參數 *source* 可以被用來以不同的方式初始化陣列: "
3275+ msgstr "選擇性引數 *repr* 可以被用來指定不同的表示法: :: "
32833276
32843277#: ../../builtins/functions.rst:1879
32853278msgid ""
0 commit comments