-
-
Notifications
You must be signed in to change notification settings - Fork 224
Expand file tree
/
Copy pathbytearray.po
More file actions
142 lines (119 loc) · 5.18 KB
/
bytearray.po
File metadata and controls
142 lines (119 loc) · 5.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-28 00:21+0000\n"
"PO-Revision-Date: 2023-08-12 11:42+0800\n"
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
"Language: zh_TW\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Poedit 3.3.2\n"
#: ../../c-api/bytearray.rst:6
msgid "Byte Array Objects"
msgstr "位元組陣列物件 (Byte Array Objects)"
#: ../../c-api/bytearray.rst:13
msgid ""
"This subtype of :c:type:`PyObject` represents a Python bytearray object."
msgstr "這個 :c:type:`PyObject` 的子型別代表了 Python 的位元組陣列物件。"
#: ../../c-api/bytearray.rst:18
msgid ""
"This instance of :c:type:`PyTypeObject` represents the Python bytearray "
"type; it is the same object as :class:`bytearray` in the Python layer."
msgstr ""
"這個 :c:type:`PyTypeObject` 的實例代表了 Python 的位元組陣列型別;在 Python "
"層中的 :class:`bytearray` 為同一個物件。"
#: ../../c-api/bytearray.rst:23
msgid "Type check macros"
msgstr "型別檢查巨集"
#: ../../c-api/bytearray.rst:27
msgid ""
"Return true if the object *o* is a bytearray object or an instance of a "
"subtype of the bytearray type. This function always succeeds."
msgstr ""
"如果物件 *o* 是一個位元組陣列物件,或者是位元組陣列型別的子型別的實例,則回傳"
"真值。此函式總是會成功執行。"
#: ../../c-api/bytearray.rst:33
msgid ""
"Return true if the object *o* is a bytearray object, but not an instance of "
"a subtype of the bytearray type. This function always succeeds."
msgstr ""
"如果物件 *o* 是一個位元組陣列物件,但不是位元組陣列型別的子型別的實例,則回傳"
"真值。此函式總是會成功執行。"
#: ../../c-api/bytearray.rst:38
msgid "Direct API functions"
msgstr "直接 API 函式"
#: ../../c-api/bytearray.rst:42
msgid ""
"Return a new bytearray object from any object, *o*, that implements the :ref:"
"`buffer protocol <bufferobjects>`."
msgstr ""
"由任意物件 *o* 回傳一個新的位元組陣列物件,並實作了\\ :ref:`緩衝協定 (buffer "
"protocol) <bufferobjects>`。"
#: ../../c-api/bytearray.rst:45 ../../c-api/bytearray.rst:56
#: ../../c-api/bytearray.rst:63
msgid "On failure, return ``NULL`` with an exception set."
msgstr "在失敗時,會回傳 ``NULL`` 並設定例外。"
#: ../../c-api/bytearray.rst:48 ../../c-api/bytearray.rst:66
msgid ""
"If the object implements the buffer protocol, then the buffer must not be "
"mutated while the bytearray object is being created."
msgstr ""
#: ../../c-api/bytearray.rst:54
msgid "Create a new bytearray object from *string* and its length, *len*."
msgstr "從 *string* 及其長度 *len* 建立一個新的位元組陣列物件。"
#: ../../c-api/bytearray.rst:61
msgid ""
"Concat bytearrays *a* and *b* and return a new bytearray with the result."
msgstr "連接位元組陣列 *a* 和 *b*,並回傳一個包含結果的新位元組陣列。"
#: ../../c-api/bytearray.rst:72
msgid "Return the size of *bytearray* after checking for a ``NULL`` pointer."
msgstr "在檢查為 ``NULL`` 指標後,回傳 *bytearray* 的大小。"
#: ../../c-api/bytearray.rst:77
msgid ""
"Return the contents of *bytearray* as a char array after checking for a "
"``NULL`` pointer. The returned array always has an extra null byte appended."
msgstr ""
"在檢查是否為 ``NULL`` 指標後,將 *bytearray* 的內容回傳為字元陣列。回傳的陣列"
"總是會多附加一個空位元組。"
#: ../../c-api/bytearray.rst:82 ../../c-api/bytearray.rst:104
msgid ""
"It is not thread-safe to mutate the bytearray object while using the "
"returned char array."
msgstr ""
#: ../../c-api/bytearray.rst:87
msgid ""
"Resize the internal buffer of *bytearray* to *len*. Failure is a ``-1`` "
"return with an exception set."
msgstr ""
"將 *bytearray* 的內部緩衝區大小調整為 *len*。失敗時會回傳 ``-1`` 並設定例外。"
#: ../../c-api/bytearray.rst:90
msgid ""
"A negative *len* will now result in an exception being set and -1 returned."
msgstr "負的 *len* 現在會設定例外並回傳 -1。"
#: ../../c-api/bytearray.rst:95
msgid "Macros"
msgstr "巨集"
#: ../../c-api/bytearray.rst:97
msgid "These macros trade safety for speed and they don't check pointers."
msgstr "這些巨集犧牲了安全性以換取速度,並且它們不會檢查指標。"
#: ../../c-api/bytearray.rst:101
msgid "Similar to :c:func:`PyByteArray_AsString`, but without error checking."
msgstr "與 :c:func:`PyByteArray_AsString` 類似,但沒有錯誤檢查。"
#: ../../c-api/bytearray.rst:109
msgid "Similar to :c:func:`PyByteArray_Size`, but without error checking."
msgstr "與 :c:func:`PyByteArray_Size` 類似,但沒有錯誤檢查。"
#: ../../c-api/bytearray.rst:8
msgid "object"
msgstr "object(物件)"
#: ../../c-api/bytearray.rst:8
msgid "bytearray"
msgstr "bytearray(位元組陣列)"