1
- # SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2001-2022, Python Software Foundation
1
+ # Copyright (C) 2001-2025, Python Software Foundation
3
2
# This file is distributed under the same license as the Python package.
4
3
#
5
4
# Translators:
5
+ # Adrian Liaw <adrianliaw2000@gmail.com>, 2018
6
+ # Matt Wang <mattwang44@gmail.com>, 2025
6
7
msgid ""
7
8
msgstr ""
8
9
"Project-Id-Version : Python 3.13\n "
9
10
"Report-Msgid-Bugs-To : \n "
10
11
"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 "
13
14
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
15
"tw)\n "
15
16
"Language : zh_TW\n "
16
17
"MIME-Version : 1.0\n "
17
18
"Content-Type : text/plain; charset=UTF-8\n "
18
19
"Content-Transfer-Encoding : 8bit\n "
19
20
"Plural-Forms : nplurals=1; plural=0;\n "
21
+ "X-Generator : Poedit 3.6\n "
20
22
21
23
#: ../../c-api/marshal.rst:6
22
24
msgid "Data marshalling support"
23
- msgstr "資料 marshal 的支援 "
25
+ msgstr "資料 marshal 操作的支援 "
24
26
25
27
#: ../../c-api/marshal.rst:8
26
28
msgid ""
@@ -30,10 +32,13 @@ msgid ""
30
32
"read the data back. Files used to store marshalled data must be opened in "
31
33
"binary mode."
32
34
msgstr ""
35
+ "這些例程允許 C 程式碼使用與 :mod:`marshal` 模組相同的資料格式來處理序列化物"
36
+ "件。有函式可以將資料寫入序列化格式,還有其他函式可以用來讀取回資料。用來儲存 "
37
+ "marshal 過的資料的檔案必須以二進位模式開啟。"
33
38
34
39
#: ../../c-api/marshal.rst:14
35
40
msgid "Numeric values are stored with the least significant byte first."
36
- msgstr ""
41
+ msgstr "數值會以最低有效位元組 (the least significant byte) 優先的方式儲存。 "
37
42
38
43
#: ../../c-api/marshal.rst:16
39
44
msgid ""
@@ -42,68 +47,85 @@ msgid ""
42
47
"unmarshalling. Version 2 uses a binary format for floating-point numbers. "
43
48
"``Py_MARSHAL_VERSION`` indicates the current file format (currently 2)."
44
49
msgstr ""
50
+ "這個模組支援兩個版本的資料格式:版本 0 是歷史版本,版本 1 在檔案中共享駐留字"
51
+ "串 (interned strings),並在 unmarshal 時使用。版本 2 使用二進位格式來儲存浮點"
52
+ "數。``Py_MARSHAL_VERSION`` 表示目前的檔案格式(目前為 2)。"
45
53
46
54
#: ../../c-api/marshal.rst:24
47
55
msgid ""
48
56
"Marshal a :c:expr:`long` integer, *value*, to *file*. This will only write "
49
57
"the least-significant 32 bits of *value*; regardless of the size of the "
50
58
"native :c:expr:`long` type. *version* indicates the file format."
51
59
msgstr ""
60
+ "將一個 :c:expr:`long` 整數 *value* marshal 為 *file*。這只會寫入 *value* 的最"
61
+ "低有效 32 位元;無論原生 :c:expr:`long` 型別的大小如何。*version* 表示檔案的格"
62
+ "式。"
52
63
53
64
#: ../../c-api/marshal.rst:28 ../../c-api/marshal.rst:36
54
65
msgid ""
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."
57
68
msgstr ""
69
+ "這個函式可能會失敗,這時會設定錯誤指示器。使用 :c:func:`PyErr_Occurred` 來檢"
70
+ "查是否發生錯誤。"
58
71
59
72
#: ../../c-api/marshal.rst:33
60
73
msgid ""
61
74
"Marshal a Python object, *value*, to *file*. *version* indicates the file "
62
75
"format."
63
76
msgstr ""
77
+ "將一個 Python 物件 *value* marshal 為 *file*。*version* 表示檔案的格式。"
64
78
65
79
#: ../../c-api/marshal.rst:41
66
80
msgid ""
67
81
"Return a bytes object containing the marshalled representation of *value*. "
68
82
"*version* indicates the file format."
69
83
msgstr ""
84
+ "回傳一個位元組物件,包含 *value* 的 marshal 表示。*version* 為檔案的格式。"
70
85
71
86
#: ../../c-api/marshal.rst:45
72
87
msgid "The following functions allow marshalled values to be read back in."
73
- msgstr ""
88
+ msgstr "以下函式允許將 marshal 過後的值讀取回來。 "
74
89
75
90
#: ../../c-api/marshal.rst:50
76
91
msgid ""
77
92
"Return a C :c:expr:`long` from the data stream in a :c:expr:`FILE*` opened "
78
93
"for reading. Only a 32-bit value can be read in using this function, "
79
94
"regardless of the native size of :c:expr:`long`."
80
95
msgstr ""
96
+ "從一個為讀取而開啟的 :c:expr:`FILE*` 中的資料串流回傳一個 C :c:expr:`long`。"
97
+ "無論 :c:expr:`long` 的原生大小如何,這個函式只能讀取 32 位元的值。"
81
98
82
99
#: ../../c-api/marshal.rst:54 ../../c-api/marshal.rst:64
83
100
msgid ""
84
101
"On error, sets the appropriate exception (:exc:`EOFError`) and returns "
85
102
"``-1``."
86
- msgstr ""
103
+ msgstr "在錯誤發生時,會設定合適的例外(:exc:`EOFError`)並回傳 ``-1``。 "
87
104
88
105
#: ../../c-api/marshal.rst:60
89
106
msgid ""
90
107
"Return a C :c:expr:`short` from the data stream in a :c:expr:`FILE*` opened "
91
108
"for reading. Only a 16-bit value can be read in using this function, "
92
109
"regardless of the native size of :c:expr:`short`."
93
110
msgstr ""
111
+ "從一個為讀取而開啟的 :c:expr:`FILE*` 中的資料串流回傳一個 C :c:expr:`short`。"
112
+ "無論 :c:expr:`short` 的原生大小如何,這個函式只能讀取 16 位元的值。"
94
113
95
114
#: ../../c-api/marshal.rst:70
96
115
msgid ""
97
116
"Return a Python object from the data stream in a :c:expr:`FILE*` opened for "
98
117
"reading."
99
118
msgstr ""
119
+ "從一個為讀取而開啟的 :c:expr:`FILE*` 中的資料串流回傳一個 Python 物件。"
100
120
101
121
#: ../../c-api/marshal.rst:73 ../../c-api/marshal.rst:87
102
122
#: ../../c-api/marshal.rst:96
103
123
msgid ""
104
124
"On error, sets the appropriate exception (:exc:`EOFError`, :exc:`ValueError` "
105
125
"or :exc:`TypeError`) and returns ``NULL``."
106
126
msgstr ""
127
+ "在錯誤發生時,會設定合適的例外(:exc:`EOFError`、:exc:`ValueError` "
128
+ "或 :exc:`TypeError`)並回傳 ``NULL``。"
107
129
108
130
#: ../../c-api/marshal.rst:79
109
131
msgid ""
@@ -115,9 +137,16 @@ msgid ""
115
137
"file. Only use these variant if you are certain that you won't be reading "
116
138
"anything else from the file."
117
139
msgstr ""
140
+ "從一個為讀取而開啟的 :c:expr:`FILE*` 中的資料串流回傳一個 Python 物件。"
141
+ "與 :c:func:`PyMarshal_ReadObjectFromFile` 不同,這個函式假設不會從檔案中讀取"
142
+ "其他物件,允許它積極地將檔案資料載入記憶體,以便反序列化可以從記憶體中的資料"
143
+ "操作,而不是從檔案中逐位元組讀取。只有在確定不會從檔案中讀取其他內容時,才使"
144
+ "用這個變體。"
118
145
119
146
#: ../../c-api/marshal.rst:93
120
147
msgid ""
121
148
"Return a Python object from the data stream in a byte buffer containing "
122
149
"*len* bytes pointed to by *data*."
123
150
msgstr ""
151
+ "從一個包含 *len* 位元組、被 *data* 指向的位元組緩衝區中的資料串流回傳一個 "
152
+ "Python 物件。"
0 commit comments