7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.12\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2023 -07-29 00:03+0000\n "
10
+ "POT-Creation-Date : 2024 -07-18 00:03+0000\n "
11
11
"PO-Revision-Date : 2015-12-09 17:51+0000\n "
12
12
"Last-Translator : Matt Wang <mattwang44@gmail.com>\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -48,140 +48,162 @@ msgstr ""
48
48
"的。"
49
49
50
50
#: ../../c-api/complex.rst:26
51
+ #, fuzzy
51
52
msgid ""
52
53
"The C structure which corresponds to the value portion of a Python complex "
53
54
"number object. Most of the functions for dealing with complex number "
54
55
"objects use structures of this type as input or output values, as "
55
- "appropriate. It is defined as:: "
56
+ "appropriate."
56
57
msgstr ""
57
58
"相對於 Python 複數物件之數值部分的 C 結構。大多數處理複數物件的函式根據需求會"
58
59
"使用這種型別的結構作為輸入或輸出值。它定義為: ::"
59
60
60
- #: ../../c-api/complex.rst:39
61
+ #: ../../c-api/complex.rst:33
62
+ msgid "The structure is defined as::"
63
+ msgstr ""
64
+
65
+ #: ../../c-api/complex.rst:43
61
66
msgid ""
62
67
"Return the sum of two complex numbers, using the C :c:type:`Py_complex` "
63
68
"representation."
64
69
msgstr "以 C 的 :c:type:`Py_complex` 表示形式來回傳兩個複數之和。"
65
70
66
- #: ../../c-api/complex.rst:45
71
+ #: ../../c-api/complex.rst:49
67
72
msgid ""
68
73
"Return the difference between two complex numbers, using the C :c:type:"
69
74
"`Py_complex` representation."
70
75
msgstr "以 C 的 :c:type:`Py_complex` 表示形式來回傳兩個複數間的差。"
71
76
72
- #: ../../c-api/complex.rst:51
77
+ #: ../../c-api/complex.rst:55
73
78
msgid ""
74
79
"Return the negation of the complex number *num*, using the C :c:type:"
75
80
"`Py_complex` representation."
76
81
msgstr ""
77
82
"以 C 的 :c:type:`Py_complex` 表示形式來回傳複數 *num* 的相反數 (negation)。"
78
83
79
- #: ../../c-api/complex.rst:57
84
+ #: ../../c-api/complex.rst:61
80
85
msgid ""
81
86
"Return the product of two complex numbers, using the C :c:type:`Py_complex` "
82
87
"representation."
83
88
msgstr "以 C 的 :c:type:`Py_complex` 表示形式來回傳兩個複數的乘積。"
84
89
85
- #: ../../c-api/complex.rst:63
90
+ #: ../../c-api/complex.rst:67
86
91
msgid ""
87
92
"Return the quotient of two complex numbers, using the C :c:type:`Py_complex` "
88
93
"representation."
89
94
msgstr "以 C 的 :c:type:`Py_complex` 表示形式來回傳兩個複數的商。"
90
95
91
- #: ../../c-api/complex.rst:66
96
+ #: ../../c-api/complex.rst:70
92
97
msgid ""
93
98
"If *divisor* is null, this method returns zero and sets :c:data:`errno` to :"
94
99
"c:macro:`!EDOM`."
95
100
msgstr ""
96
101
"如果 *divisor* 為 null,則此方法會回傳零並將 :c:data:`errno` 設定為 :c:macro:"
97
102
"`!EDOM`。"
98
103
99
- #: ../../c-api/complex.rst:72
104
+ #: ../../c-api/complex.rst:76
100
105
msgid ""
101
106
"Return the exponentiation of *num* by *exp*, using the C :c:type:"
102
107
"`Py_complex` representation."
103
108
msgstr ""
104
109
"以 C 的 :c:type:`Py_complex` 表示形式來回傳 *num* 的 *exp* 次方的結果。"
105
110
106
- #: ../../c-api/complex.rst:75
111
+ #: ../../c-api/complex.rst:79
107
112
msgid ""
108
113
"If *num* is null and *exp* is not a positive real number, this method "
109
114
"returns zero and sets :c:data:`errno` to :c:macro:`!EDOM`."
110
115
msgstr ""
111
116
"如果 *num* 為 null 且 *exp* 不是正實數,則此方法會回傳零並將 :c:data:`errno` "
112
117
"設定為 :c:macro:`!EDOM`。"
113
118
114
- #: ../../c-api/complex.rst:80
119
+ #: ../../c-api/complex.rst:84
115
120
msgid "Complex Numbers as Python Objects"
116
121
msgstr "作為 Python 物件的複數"
117
122
118
- #: ../../c-api/complex.rst:85
123
+ #: ../../c-api/complex.rst:89
119
124
msgid ""
120
125
"This subtype of :c:type:`PyObject` represents a Python complex number object."
121
126
msgstr "這個 :c:type:`PyObject` 的子型別代表一個 Python 複數物件。"
122
127
123
- #: ../../c-api/complex.rst:90
128
+ #: ../../c-api/complex.rst:94
124
129
msgid ""
125
130
"This instance of :c:type:`PyTypeObject` represents the Python complex number "
126
131
"type. It is the same object as :class:`complex` in the Python layer."
127
132
msgstr ""
128
133
"這個 :c:type:`PyTypeObject` 的實例代表 Python 複數型別。它與 Python 層中的 :"
129
134
"class:`complex` 是同一個物件。"
130
135
131
- #: ../../c-api/complex.rst:96
136
+ #: ../../c-api/complex.rst:100
132
137
msgid ""
133
138
"Return true if its argument is a :c:type:`PyComplexObject` or a subtype of :"
134
139
"c:type:`PyComplexObject`. This function always succeeds."
135
140
msgstr ""
136
141
"如果其引數是一個 :c:type:`PyComplexObject` 或者是 :c:type:`PyComplexObject` "
137
142
"的子型別,則會回傳 true。這個函式不會失敗。"
138
143
139
- #: ../../c-api/complex.rst:102
144
+ #: ../../c-api/complex.rst:106
140
145
msgid ""
141
146
"Return true if its argument is a :c:type:`PyComplexObject`, but not a "
142
147
"subtype of :c:type:`PyComplexObject`. This function always succeeds."
143
148
msgstr ""
144
149
"如果其引數是一個 :c:type:`PyComplexObject`,但不是 :c:type:`PyComplexObject` "
145
150
"的子型別,則會回傳 true。這個函式不會失敗。"
146
151
147
- #: ../../c-api/complex.rst:108
152
+ #: ../../c-api/complex.rst:112
153
+ #, fuzzy
148
154
msgid ""
149
155
"Create a new Python complex number object from a C :c:type:`Py_complex` "
150
- "value."
156
+ "value. Return ``NULL`` with an exception set on error. "
151
157
msgstr "從 C 的 :c:type:`Py_complex` 值建立一個新的 Python 複數物件。"
152
158
153
- #: ../../c-api/complex.rst:113
154
- msgid "Return a new :c:type:`PyComplexObject` object from *real* and *imag*."
159
+ #: ../../c-api/complex.rst:118
160
+ #, fuzzy
161
+ msgid ""
162
+ "Return a new :c:type:`PyComplexObject` object from *real* and *imag*. Return "
163
+ "``NULL`` with an exception set on error."
155
164
msgstr "從 *real* 和 *imag* 回傳一個新的 :c:type:`PyComplexObject` 物件。"
156
165
157
- #: ../../c-api/complex.rst:118
166
+ #: ../../c-api/complex.rst:124
158
167
msgid "Return the real part of *op* as a C :c:expr:`double`."
159
168
msgstr "以 C 的 :c:expr:`double` 形式回傳 *op* 的實部。"
160
169
161
- #: ../../c-api/complex.rst:123
170
+ #: ../../c-api/complex.rst:126
171
+ msgid ""
172
+ "Upon failure, this method returns ``-1.0`` with an exception set, so one "
173
+ "should call :c:func:`PyErr_Occurred` to check for errors."
174
+ msgstr ""
175
+
176
+ #: ../../c-api/complex.rst:132
162
177
msgid "Return the imaginary part of *op* as a C :c:expr:`double`."
163
178
msgstr "將 *op* 的虛部作為 C 的 :c:expr:`double` 回傳。"
164
179
165
- #: ../../c-api/complex.rst:128
180
+ #: ../../c-api/complex.rst:137
166
181
msgid "Return the :c:type:`Py_complex` value of the complex number *op*."
167
182
msgstr "回傳複數 *op* 的 :c:type:`Py_complex` 值。"
168
183
169
- #: ../../c-api/complex.rst:130
184
+ #: ../../c-api/complex.rst:139
185
+ #, fuzzy
170
186
msgid ""
171
187
"If *op* is not a Python complex number object but has a :meth:`~object."
172
188
"__complex__` method, this method will first be called to convert *op* to a "
173
189
"Python complex number object. If :meth:`!__complex__` is not defined then "
174
190
"it falls back to :meth:`~object.__float__`. If :meth:`!__float__` is not "
175
- "defined then it falls back to :meth:`~object.__index__`. Upon failure, this "
176
- "method returns ``-1.0`` as a real value."
191
+ "defined then it falls back to :meth:`~object.__index__`."
177
192
msgstr ""
178
193
"如果 *op* 不是 Python 複數物件,但有一個 :meth:`~object.__complex__` 方法,則"
179
194
"首先會呼叫該方法將 *op* 轉換為 Python 複數物件。如果 :meth:`!__complex__` 並"
180
195
"未定義,那麼它會回退到 :meth:`~object.__float__`。如果 :meth:`!__float__` 未"
181
196
"定義,則它將繼續回退為 :meth:`~object.__index__`。失敗時,此方法回傳 "
182
197
"``-1.0`` 作為實部值。"
183
198
184
- #: ../../c-api/complex.rst:137
199
+ #: ../../c-api/complex.rst:145
200
+ msgid ""
201
+ "Upon failure, this method returns :c:type:`Py_complex` with :c:member:"
202
+ "`~Py_complex.real` set to ``-1.0`` and with an exception set, so one should "
203
+ "call :c:func:`PyErr_Occurred` to check for errors."
204
+ msgstr ""
205
+
206
+ #: ../../c-api/complex.rst:149
185
207
msgid "Use :meth:`~object.__index__` if available."
186
208
msgstr "如果可用則使用 :meth:`~object.__index__`。"
187
209
0 commit comments