@@ -48,19 +48,18 @@ msgstr ""
48
48
"的。"
49
49
50
50
#: ../../c-api/complex.rst:26
51
- #, fuzzy
52
51
msgid ""
53
52
"The C structure which corresponds to the value portion of a Python complex "
54
53
"number object. Most of the functions for dealing with complex number "
55
54
"objects use structures of this type as input or output values, as "
56
55
"appropriate."
57
56
msgstr ""
58
57
"相對於 Python 複數物件之數值部分的 C 結構。大多數處理複數物件的函式根據需求會"
59
- "使用這種型別的結構作為輸入或輸出值。它定義為: :: "
58
+ "使用這種型別的結構作為輸入或輸出值。"
60
59
61
60
#: ../../c-api/complex.rst:33
62
61
msgid "The structure is defined as::"
63
- msgstr ""
62
+ msgstr "該結構被定義為: :: "
64
63
65
64
#: ../../c-api/complex.rst:43
66
65
msgid ""
@@ -150,18 +149,20 @@ msgstr ""
150
149
"的子型別,則會回傳 true。這個函式不會失敗。"
151
150
152
151
#: ../../c-api/complex.rst:112
153
- #, fuzzy
154
152
msgid ""
155
153
"Create a new Python complex number object from a C :c:type:`Py_complex` "
156
154
"value. Return ``NULL`` with an exception set on error."
157
- msgstr "從 C 的 :c:type:`Py_complex` 值建立一個新的 Python 複數物件。"
155
+ msgstr ""
156
+ "從 C 的 :c:type:`Py_complex` 值建立一個新的 Python 複數物件。在錯誤時回傳 "
157
+ "``NULL`` 並設定例外。"
158
158
159
159
#: ../../c-api/complex.rst:118
160
- #, fuzzy
161
160
msgid ""
162
161
"Return a new :c:type:`PyComplexObject` object from *real* and *imag*. Return "
163
162
"``NULL`` with an exception set on error."
164
- msgstr "從 *real* 和 *imag* 回傳一個新的 :c:type:`PyComplexObject` 物件。"
163
+ msgstr ""
164
+ "從 *real* 和 *imag* 回傳一個新的 :c:type:`PyComplexObject` 物件。在錯誤時回"
165
+ "傳 ``NULL`` 並設定例外。"
165
166
166
167
#: ../../c-api/complex.rst:124
167
168
msgid "Return the real part of *op* as a C :c:expr:`double`."
@@ -172,6 +173,8 @@ msgid ""
172
173
"Upon failure, this method returns ``-1.0`` with an exception set, so one "
173
174
"should call :c:func:`PyErr_Occurred` to check for errors."
174
175
msgstr ""
176
+ "失敗時,此方法回傳 ``-1.0`` 並設定例外,因此應該呼叫 :c:func:"
177
+ "`PyErr_Occurred` 來檢查錯誤。"
175
178
176
179
#: ../../c-api/complex.rst:132
177
180
msgid "Return the imaginary part of *op* as a C :c:expr:`double`."
@@ -182,7 +185,6 @@ msgid "Return the :c:type:`Py_complex` value of the complex number *op*."
182
185
msgstr "回傳複數 *op* 的 :c:type:`Py_complex` 值。"
183
186
184
187
#: ../../c-api/complex.rst:139
185
- #, fuzzy
186
188
msgid ""
187
189
"If *op* is not a Python complex number object but has a :meth:`~object."
188
190
"__complex__` method, this method will first be called to convert *op* to a "
@@ -193,15 +195,16 @@ msgstr ""
193
195
"如果 *op* 不是 Python 複數物件,但有一個 :meth:`~object.__complex__` 方法,則"
194
196
"首先會呼叫該方法將 *op* 轉換為 Python 複數物件。如果 :meth:`!__complex__` 並"
195
197
"未定義,那麼它會回退到 :meth:`~object.__float__`。如果 :meth:`!__float__` 未"
196
- "定義,則它將繼續回退為 :meth:`~object.__index__`。失敗時,此方法回傳 "
197
- "``-1.0`` 作為實部值。"
198
+ "定義,則它將繼續回退為 :meth:`~object.__index__`。"
198
199
199
200
#: ../../c-api/complex.rst:145
200
201
msgid ""
201
202
"Upon failure, this method returns :c:type:`Py_complex` with :c:member:"
202
203
"`~Py_complex.real` set to ``-1.0`` and with an exception set, so one should "
203
204
"call :c:func:`PyErr_Occurred` to check for errors."
204
205
msgstr ""
206
+ "失敗時,此方法回傳 :c:type:`Py_complex` 並將 :c:member:`~Py_complex.real` 設"
207
+ "為 ``-1.0``,並設定例外,因此應該呼叫 :c:func:`PyErr_Occurred` 來檢查錯誤。"
205
208
206
209
#: ../../c-api/complex.rst:149
207
210
msgid "Use :meth:`~object.__index__` if available."
0 commit comments