1- # SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2022, Python Software Foundation
1+ # Copyright (C) 2001-2025, Python Software Foundation
32# This file is distributed under the same license as the Python package.
43#
54# Translators:
5+ # Adrian Liaw <adrianliaw2000@gmail.com>, 2018
6+ # Matt Wang <mattwang44@gmail.com>, 2025
67msgid ""
78msgstr ""
89"Project-Id-Version :Python 3.13\n "
910"Report-Msgid-Bugs-To :\n "
1011"POT-Creation-Date :2024-07-20 00:03+0000\n "
11- "PO-Revision-Date :2018-05-23 14:06+0000 \n "
12- "Last-Translator :Adrian Liaw <adrianliaw2000 @gmail.com>\n "
12+ "PO-Revision-Date :2025-06-28 02:44+0800 \n "
13+ "Last-Translator :Matt Wang <mattwang44 @gmail.com>\n "
1314"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
1415"tw)\n "
1516"Language :zh_TW\n "
1617"MIME-Version :1.0\n "
1718"Content-Type :text/plain; charset=UTF-8\n "
1819"Content-Transfer-Encoding :8bit\n "
1920"Plural-Forms :nplurals=1; plural=0;\n "
21+ "X-Generator :Poedit 3.6\n "
2022
2123#: ../../c-api/marshal.rst:6
2224msgid "Data marshalling support"
23- msgstr "資料 marshal的支援 "
25+ msgstr "資料 marshal操作的支援 "
2426
2527#: ../../c-api/marshal.rst:8
2628msgid ""
@@ -30,10 +32,13 @@ msgid ""
3032"read the data back. Files used to store marshalled data must be opened in "
3133"binary mode."
3234msgstr ""
35+ "這些例程允許 C 程式碼使用與 :mod:`marshal` 模組相同的資料格式來處理序列化物"
36+ "件。有函式可以將資料寫入序列化格式,還有其他函式可以用來讀取回資料。用來儲存 "
37+ "marshal 過的資料的檔案必須以二進位模式開啟。"
3338
3439#: ../../c-api/marshal.rst:14
3540msgid "Numeric values are stored with the least significant byte first."
36- msgstr ""
41+ msgstr "數值會以最低有效位元組 (the least significant byte) 優先的方式儲存。 "
3742
3843#: ../../c-api/marshal.rst:16
3944msgid ""
@@ -42,68 +47,85 @@ msgid ""
4247"unmarshalling. Version 2 uses a binary format for floating-point numbers. "
4348"``Py_MARSHAL_VERSION`` indicates the current file format (currently 2)."
4449msgstr ""
50+ "這個模組支援兩個版本的資料格式:版本 0 是歷史版本,版本 1 在檔案中共享駐留字"
51+ "串 (interned strings),並在 unmarshal 時使用。版本 2 使用二進位格式來儲存浮點"
52+ "數。``Py_MARSHAL_VERSION`` 表示目前的檔案格式(目前為 2)。"
4553
4654#: ../../c-api/marshal.rst:24
4755msgid ""
4856"Marshal a :c:expr:`long` integer, *value*, to *file*. This will only write "
4957"the least-significant 32 bits of *value*; regardless of the size of the "
5058"native :c:expr:`long` type. *version* indicates the file format."
5159msgstr ""
60+ "將一個 :c:expr:`long` 整數 *value* marshal 為 *file*。這只會寫入 *value* 的最"
61+ "低有效 32 位元;無論原生 :c:expr:`long` 型別的大小如何。*version* 表示檔案的格"
62+ "式。"
5263
5364#: ../../c-api/marshal.rst:28 ../../c-api/marshal.rst:36
5465msgid ""
55- "This function can fail, in which case it sets the error indicator.Use :c: "
56- "func:`PyErr_Occurred` to check for that."
66+ "This function can fail, in which case it sets the error indicator. "
67+ "Use :c: func:`PyErr_Occurred` to check for that."
5768msgstr ""
69+ "這個函式可能會失敗,這時會設定錯誤指示器。使用 :c:func:`PyErr_Occurred` 來檢"
70+ "查是否發生錯誤。"
5871
5972#: ../../c-api/marshal.rst:33
6073msgid ""
6174"Marshal a Python object, *value*, to *file*. *version* indicates the file "
6275"format."
6376msgstr ""
77+ "將一個 Python 物件 *value* marshal 為 *file*。*version* 表示檔案的格式。"
6478
6579#: ../../c-api/marshal.rst:41
6680msgid ""
6781"Return a bytes object containing the marshalled representation of *value*. "
6882"*version* indicates the file format."
6983msgstr ""
84+ "回傳一個位元組物件,包含 *value* 的 marshal 表示。*version* 為檔案的格式。"
7085
7186#: ../../c-api/marshal.rst:45
7287msgid "The following functions allow marshalled values to be read back in."
73- msgstr ""
88+ msgstr "以下函式允許將 marshal 過後的值讀取回來。 "
7489
7590#: ../../c-api/marshal.rst:50
7691msgid ""
7792"Return a C :c:expr:`long` from the data stream in a :c:expr:`FILE*` opened "
7893"for reading. Only a 32-bit value can be read in using this function, "
7994"regardless of the native size of :c:expr:`long`."
8095msgstr ""
96+ "從一個為讀取而開啟的 :c:expr:`FILE*` 中的資料串流回傳一個 C :c:expr:`long`。"
97+ "無論 :c:expr:`long` 的原生大小如何,這個函式只能讀取 32 位元的值。"
8198
8299#: ../../c-api/marshal.rst:54 ../../c-api/marshal.rst:64
83100msgid ""
84101"On error, sets the appropriate exception (:exc:`EOFError`) and returns "
85102"``-1``."
86- msgstr ""
103+ msgstr "在錯誤發生時,會設定合適的例外(:exc:`EOFError`)並回傳 ``-1``。 "
87104
88105#: ../../c-api/marshal.rst:60
89106msgid ""
90107"Return a C :c:expr:`short` from the data stream in a :c:expr:`FILE*` opened "
91108"for reading. Only a 16-bit value can be read in using this function, "
92109"regardless of the native size of :c:expr:`short`."
93110msgstr ""
111+ "從一個為讀取而開啟的 :c:expr:`FILE*` 中的資料串流回傳一個 C :c:expr:`short`。"
112+ "無論 :c:expr:`short` 的原生大小如何,這個函式只能讀取 16 位元的值。"
94113
95114#: ../../c-api/marshal.rst:70
96115msgid ""
97116"Return a Python object from the data stream in a :c:expr:`FILE*` opened for "
98117"reading."
99118msgstr ""
119+ "從一個為讀取而開啟的 :c:expr:`FILE*` 中的資料串流回傳一個 Python 物件。"
100120
101121#: ../../c-api/marshal.rst:73 ../../c-api/marshal.rst:87
102122#: ../../c-api/marshal.rst:96
103123msgid ""
104124"On error, sets the appropriate exception (:exc:`EOFError`, :exc:`ValueError` "
105125"or :exc:`TypeError`) and returns ``NULL``."
106126msgstr ""
127+ "在錯誤發生時,會設定合適的例外(:exc:`EOFError`、:exc:`ValueError` "
128+ "或 :exc:`TypeError`)並回傳 ``NULL``。"
107129
108130#: ../../c-api/marshal.rst:79
109131msgid ""
@@ -115,9 +137,16 @@ msgid ""
115137"file. Only use these variant if you are certain that you won't be reading "
116138"anything else from the file."
117139msgstr ""
140+ "從一個為讀取而開啟的 :c:expr:`FILE*` 中的資料串流回傳一個 Python 物件。"
141+ "與 :c:func:`PyMarshal_ReadObjectFromFile` 不同,這個函式假設不會從檔案中讀取"
142+ "其他物件,允許它積極地將檔案資料載入記憶體,以便反序列化可以從記憶體中的資料"
143+ "操作,而不是從檔案中逐位元組讀取。只有在確定不會從檔案中讀取其他內容時,才使"
144+ "用這個變體。"
118145
119146#: ../../c-api/marshal.rst:93
120147msgid ""
121148"Return a Python object from the data stream in a byte buffer containing "
122149"*len* bytes pointed to by *data*."
123150msgstr ""
151+ "從一個包含 *len* 位元組、被 *data* 指向的位元組緩衝區中的資料串流回傳一個 "
152+ "Python 物件。"