Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit973a752

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython 3279a4fb
1 parent7cbdc0e commit973a752

File tree

1 file changed

+48
-26
lines changed

1 file changed

+48
-26
lines changed

‎c-api/complex.po

Lines changed: 48 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.12\n"
99
"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"
1111
"PO-Revision-Date:2015-12-09 17:51+0000\n"
1212
"Last-Translator:Matt Wang <mattwang44@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -48,140 +48,162 @@ msgstr ""
4848
"的。"
4949

5050
#:../../c-api/complex.rst:26
51+
#,fuzzy
5152
msgid""
5253
"The C structure which corresponds to the value portion of a Python complex "
5354
"number object. Most of the functions for dealing with complex number "
5455
"objects use structures of this type as input or output values, as "
55-
"appropriate. It is defined as::"
56+
"appropriate."
5657
msgstr""
5758
"相對於 Python 複數物件之數值部分的 C 結構。大多數處理複數物件的函式根據需求會"
5859
"使用這種型別的結構作為輸入或輸出值。它定義為: ::"
5960

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
6166
msgid""
6267
"Return the sum of two complex numbers, using the C :c:type:`Py_complex` "
6368
"representation."
6469
msgstr"以 C 的 :c:type:`Py_complex` 表示形式來回傳兩個複數之和。"
6570

66-
#:../../c-api/complex.rst:45
71+
#:../../c-api/complex.rst:49
6772
msgid""
6873
"Return the difference between two complex numbers, using the C :c:type:"
6974
"`Py_complex` representation."
7075
msgstr"以 C 的 :c:type:`Py_complex` 表示形式來回傳兩個複數間的差。"
7176

72-
#:../../c-api/complex.rst:51
77+
#:../../c-api/complex.rst:55
7378
msgid""
7479
"Return the negation of the complex number *num*, using the C :c:type:"
7580
"`Py_complex` representation."
7681
msgstr""
7782
"以 C 的 :c:type:`Py_complex` 表示形式來回傳複數 *num* 的相反數 (negation)。"
7883

79-
#:../../c-api/complex.rst:57
84+
#:../../c-api/complex.rst:61
8085
msgid""
8186
"Return the product of two complex numbers, using the C :c:type:`Py_complex` "
8287
"representation."
8388
msgstr"以 C 的 :c:type:`Py_complex` 表示形式來回傳兩個複數的乘積。"
8489

85-
#:../../c-api/complex.rst:63
90+
#:../../c-api/complex.rst:67
8691
msgid""
8792
"Return the quotient of two complex numbers, using the C :c:type:`Py_complex` "
8893
"representation."
8994
msgstr"以 C 的 :c:type:`Py_complex` 表示形式來回傳兩個複數的商。"
9095

91-
#:../../c-api/complex.rst:66
96+
#:../../c-api/complex.rst:70
9297
msgid""
9398
"If *divisor* is null, this method returns zero and sets :c:data:`errno` to :"
9499
"c:macro:`!EDOM`."
95100
msgstr""
96101
"如果 *divisor* 為 null,則此方法會回傳零並將 :c:data:`errno` 設定為 :c:macro:"
97102
"`!EDOM`。"
98103

99-
#:../../c-api/complex.rst:72
104+
#:../../c-api/complex.rst:76
100105
msgid""
101106
"Return the exponentiation of *num* by *exp*, using the C :c:type:"
102107
"`Py_complex` representation."
103108
msgstr""
104109
"以 C 的 :c:type:`Py_complex` 表示形式來回傳 *num* 的 *exp* 次方的結果。"
105110

106-
#:../../c-api/complex.rst:75
111+
#:../../c-api/complex.rst:79
107112
msgid""
108113
"If *num* is null and *exp* is not a positive real number, this method "
109114
"returns zero and sets :c:data:`errno` to :c:macro:`!EDOM`."
110115
msgstr""
111116
"如果 *num* 為 null 且 *exp* 不是正實數,則此方法會回傳零並將 :c:data:`errno` "
112117
"設定為 :c:macro:`!EDOM`。"
113118

114-
#:../../c-api/complex.rst:80
119+
#:../../c-api/complex.rst:84
115120
msgid"Complex Numbers as Python Objects"
116121
msgstr"作為 Python 物件的複數"
117122

118-
#:../../c-api/complex.rst:85
123+
#:../../c-api/complex.rst:89
119124
msgid""
120125
"This subtype of :c:type:`PyObject` represents a Python complex number object."
121126
msgstr"這個 :c:type:`PyObject` 的子型別代表一個 Python 複數物件。"
122127

123-
#:../../c-api/complex.rst:90
128+
#:../../c-api/complex.rst:94
124129
msgid""
125130
"This instance of :c:type:`PyTypeObject` represents the Python complex number "
126131
"type. It is the same object as :class:`complex` in the Python layer."
127132
msgstr""
128133
"這個 :c:type:`PyTypeObject` 的實例代表 Python 複數型別。它與 Python 層中的 :"
129134
"class:`complex` 是同一個物件。"
130135

131-
#:../../c-api/complex.rst:96
136+
#:../../c-api/complex.rst:100
132137
msgid""
133138
"Return true if its argument is a :c:type:`PyComplexObject` or a subtype of :"
134139
"c:type:`PyComplexObject`. This function always succeeds."
135140
msgstr""
136141
"如果其引數是一個 :c:type:`PyComplexObject` 或者是 :c:type:`PyComplexObject` "
137142
"的子型別,則會回傳 true。這個函式不會失敗。"
138143

139-
#:../../c-api/complex.rst:102
144+
#:../../c-api/complex.rst:106
140145
msgid""
141146
"Return true if its argument is a :c:type:`PyComplexObject`, but not a "
142147
"subtype of :c:type:`PyComplexObject`. This function always succeeds."
143148
msgstr""
144149
"如果其引數是一個 :c:type:`PyComplexObject`,但不是 :c:type:`PyComplexObject` "
145150
"的子型別,則會回傳 true。這個函式不會失敗。"
146151

147-
#:../../c-api/complex.rst:108
152+
#:../../c-api/complex.rst:112
153+
#,fuzzy
148154
msgid""
149155
"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."
151157
msgstr"從 C 的 :c:type:`Py_complex` 值建立一個新的 Python 複數物件。"
152158

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."
155164
msgstr"從 *real* 和 *imag* 回傳一個新的 :c:type:`PyComplexObject` 物件。"
156165

157-
#:../../c-api/complex.rst:118
166+
#:../../c-api/complex.rst:124
158167
msgid"Return the real part of *op* as a C :c:expr:`double`."
159168
msgstr"以 C 的 :c:expr:`double` 形式回傳 *op* 的實部。"
160169

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
162177
msgid"Return the imaginary part of *op* as a C :c:expr:`double`."
163178
msgstr"將 *op* 的虛部作為 C 的 :c:expr:`double` 回傳。"
164179

165-
#:../../c-api/complex.rst:128
180+
#:../../c-api/complex.rst:137
166181
msgid"Return the :c:type:`Py_complex` value of the complex number *op*."
167182
msgstr"回傳複數 *op* 的 :c:type:`Py_complex` 值。"
168183

169-
#:../../c-api/complex.rst:130
184+
#:../../c-api/complex.rst:139
185+
#,fuzzy
170186
msgid""
171187
"If *op* is not a Python complex number object but has a :meth:`~object."
172188
"__complex__` method, this method will first be called to convert *op* to a "
173189
"Python complex number object. If :meth:`!__complex__` is not defined then "
174190
"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__`."
177192
msgstr""
178193
"如果 *op* 不是 Python 複數物件,但有一個 :meth:`~object.__complex__` 方法,則"
179194
"首先會呼叫該方法將 *op* 轉換為 Python 複數物件。如果 :meth:`!__complex__` 並"
180195
"未定義,那麼它會回退到 :meth:`~object.__float__`。如果 :meth:`!__float__` 未"
181196
"定義,則它將繼續回退為 :meth:`~object.__index__`。失敗時,此方法回傳 "
182197
"``-1.0`` 作為實部值。"
183198

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
185207
msgid"Use :meth:`~object.__index__` if available."
186208
msgstr"如果可用則使用 :meth:`~object.__index__`。"
187209

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp