2
2
# This file is distributed under the same license as the Python package.
3
3
#
4
4
# Translators:
5
- # Leon H., 2017
6
- # Weilin Du, 2025
5
+ # Leon H., 2017
6
+ # Weilin Du, 2025
7
7
msgid ""
8
8
msgstr ""
9
9
"Project-Id-Version :Python 3.14\n "
@@ -56,7 +56,7 @@ msgstr "如果無法分配新物件,則回傳 ``NULL`` 並設定例外。"
56
56
57
57
#: ../../c-api/slice.rst:34
58
58
msgid ""
59
- "Retrieve the start, stop and step indices from the slice object *slice*, "
59
+ "Retrieve the start, stop and step indices from the slice object *slice*, "
60
60
"assuming a sequence of length *length*. Treats indices greater than *length* "
61
61
"as errors."
62
62
msgstr ""
@@ -67,10 +67,10 @@ msgstr ""
67
67
msgid ""
68
68
"Returns ``0`` on success and ``-1`` on error with no exception set (unless "
69
69
"one of the indices was not ``None`` and failed to be converted to an "
70
- "integer, in which case ``-1`` is returned with an exception set)."
70
+ "integer, in which case ``-1`` is returned with an exception set)."
71
71
msgstr ""
72
72
"成功時回傳 ``0``,錯誤時回傳 ``-1``,並無例外設定(除非其中一個索引不是 "
73
- "``None` 並且未能轉換成整數,在這種情況下會回傳 ``-1`,並有設定例外)。"
73
+ "``None`` 並且未能轉換成整數,在這種情況下會回傳 ``-1`` ,並有設定例外)。"
74
74
75
75
#: ../../c-api/slice.rst:42
76
76
msgid "You probably do not want to use this function."
@@ -83,9 +83,9 @@ msgstr "之前 *slice* 的參數型別是 ``PySliceObject*`` 。"
83
83
84
84
#: ../../c-api/slice.rst:51
85
85
msgid ""
86
- "Usable replacement for :c:func:`PySlice_GetIndices`. Retrieve the start, "
87
- "stop, and step indices from the slice object *slice* assuming a sequence of "
88
- "length *length*, and store the length of the slice in *slicelength*. Out of "
86
+ "Usable replacement for :c:func:`PySlice_GetIndices`. Retrieve the start, "
87
+ "stop, and step indices from the slice object *slice* assuming a sequence of "
88
+ "length *length*, and store the length of the slice in *slicelength*. Out of "
89
89
"bounds indices are clipped in a manner consistent with the handling of "
90
90
"normal slices."
91
91
msgstr ""
@@ -109,12 +109,12 @@ msgstr ""
109
109
110
110
#: ../../c-api/slice.rst:64
111
111
msgid ""
112
- "if (PySlice_GetIndicesEx(slice, length, &start, &stop, &step, &slicelength) "
112
+ "if (PySlice_GetIndicesEx(slice, length, &start, &stop, &step, &slicelength) "
113
113
"< 0) {\n"
114
114
" // return error\n"
115
115
"}"
116
116
msgstr ""
117
- "if (PySlice_GetIndicesEx(slice, length, &start, &stop, &step, &slicelength) "
117
+ "if (PySlice_GetIndicesEx(slice, length, &start, &stop, &step, &slicelength) "
118
118
"< 0) {\n"
119
119
" // return error\n"
120
120
"}"
@@ -125,15 +125,15 @@ msgstr "被更換為 ::"
125
125
126
126
#: ../../c-api/slice.rst:70
127
127
msgid ""
128
- "if (PySlice_Unpack(slice, &start, &stop, &step) < 0) {\n"
128
+ "if (PySlice_Unpack(slice, &start, &stop, &step) < 0) {\n"
129
129
" // return error\n"
130
130
"}\n"
131
- "slicelength = PySlice_AdjustIndices(length, &start, &stop, step);"
131
+ "slicelength = PySlice_AdjustIndices(length, &start, &stop, step);"
132
132
msgstr ""
133
- "if (PySlice_Unpack(slice, &start, &stop, &step) < 0) {\n"
133
+ "if (PySlice_Unpack(slice, &start, &stop, &step) < 0) {\n"
134
134
" // return error\n"
135
135
"}\n"
136
- "slicelength = PySlice_AdjustIndices(length, &start, &stop, step);"
136
+ "slicelength = PySlice_AdjustIndices(length, &start, &stop, step);"
137
137
138
138
#: ../../c-api/slice.rst:79
139
139
msgid ""
@@ -161,10 +161,10 @@ msgstr ""
161
161
162
162
#: ../../c-api/slice.rst:94
163
163
msgid ""
164
- "Extract the start, stop and step data members from a slice object as C "
164
+ "Extract the start, stop and step data members from a slice object as C "
165
165
"integers. Silently reduce values larger than ``PY_SSIZE_T_MAX`` to "
166
- "``PY_SSIZE_T_MAX``, silently boost the start and stop values less than "
167
- "``PY_SSIZE_T_MIN`` to ``PY_SSIZE_T_MIN``, and silently boost the step values "
166
+ "``PY_SSIZE_T_MAX``, silently boost the start and stop values less than "
167
+ "``PY_SSIZE_T_MIN`` to ``PY_SSIZE_T_MIN``, and silently boost the step values "
168
168
"less than ``-PY_SSIZE_T_MAX`` to ``-PY_SSIZE_T_MAX``."
169
169
msgstr ""
170
170
"以 C 整數的形式從 slice 物件中抽取 start、stop 及 step 資料成員。將大於 "
@@ -173,7 +173,7 @@ msgstr ""
173
173
"的 step 值靜默提升為 ``-PY_SSIZE_T_MAX``。"
174
174
175
175
#: ../../c-api/slice.rst:100
176
- msgid "Return ``-1`` with an exception set on error, ``0`` on success."
176
+ msgid "Return ``-1`` with an exception set on error, ``0`` on success."
177
177
msgstr "成功時回傳 ``0``,在失敗時回傳 ``-1`` 並設定例外。"
178
178
179
179
#: ../../c-api/slice.rst:107
@@ -206,7 +206,7 @@ msgstr ""
206
206
#: ../../c-api/slice.rst:129
207
207
msgid ""
208
208
"The Python ``Ellipsis`` object. This object has no methods. "
209
- "Like :c:data:`Py_None`, it is an :term:`immortal` singleton object."
209
+ "Like :c:data:`Py_None`, it is an :term:`immortal` singleton object."
210
210
msgstr ""
211
211
"Python ``Ellipsis`` 物件。這個物件沒有方法。就像 :c:data:`Py_None` 一樣,它是"
212
212
"一個 :term:`immortal` 單一物件。"