1
- # SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2001-2022, Python Software Foundation
1
+ # Copyright (C) 2001-2023, Python Software Foundation
3
2
# This file is distributed under the same license as the Python package.
4
3
#
5
4
# Translators:
5
+ # Matt Wang <[email protected] >, 2023
6
6
msgid ""
7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.12\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
10
"POT-Creation-Date : 2023-07-29 00:03+0000\n "
11
11
"PO-Revision-Date : 2015-12-09 17:51+0000\n "
12
- "
Last-Translator :
Liang-Bo Wang <[email protected] >\n"
12
+ "
Last-Translator :
Matt Wang <[email protected] >\n"
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
14
"tw)\n "
15
15
"Language : zh_TW\n "
@@ -20,7 +20,7 @@ msgstr ""
20
20
21
21
#: ../../c-api/complex.rst:6
22
22
msgid "Complex Number Objects"
23
- msgstr ""
23
+ msgstr "複數物件 "
24
24
25
25
#: ../../c-api/complex.rst:10
26
26
msgid ""
@@ -29,17 +29,23 @@ msgid ""
29
29
"and the other is a C structure which represents the actual complex number "
30
30
"value. The API provides functions for working with both."
31
31
msgstr ""
32
+ "從 C API 來看,Python 的複數物件被實作為兩種不同的型別:一種是公開給 Python "
33
+ "程式的 Python 物件,另一種是表示實際複數值的 C 結構。API 提供了與兩者一起作用"
34
+ "的函式。"
32
35
33
36
#: ../../c-api/complex.rst:17
34
37
msgid "Complex Numbers as C Structures"
35
- msgstr ""
38
+ msgstr "作為 C 結構的複數 "
36
39
37
40
#: ../../c-api/complex.rst:19
38
41
msgid ""
39
42
"Note that the functions which accept these structures as parameters and "
40
43
"return them as results do so *by value* rather than dereferencing them "
41
44
"through pointers. This is consistent throughout the API."
42
45
msgstr ""
46
+ "請注意,接受這些結構作為參數並將它們作為結果回傳的函式是\\ *按值 (by "
47
+ "value)* 執行的,而不是透過指標取消參照 (dereference) 它們。這在整個 API 中"
48
+ "都是一致的。"
43
49
44
50
#: ../../c-api/complex.rst:26
45
51
msgid ""
@@ -48,103 +54,116 @@ msgid ""
48
54
"objects use structures of this type as input or output values, as "
49
55
"appropriate. It is defined as::"
50
56
msgstr ""
57
+ "相對於 Python 複數物件之數值部分的 C 結構。大多數處理複數物件的函式根據需求會"
58
+ "使用這種型別的結構作為輸入或輸出值。它定義為: ::"
51
59
52
60
#: ../../c-api/complex.rst:39
53
61
msgid ""
54
62
"Return the sum of two complex numbers, using the C :c:type:`Py_complex` "
55
63
"representation."
56
- msgstr ""
64
+ msgstr "以 C 的 :c:type:`Py_complex` 表示形式來回傳兩個複數之和。 "
57
65
58
66
#: ../../c-api/complex.rst:45
59
67
msgid ""
60
68
"Return the difference between two complex numbers, using the C :c:type:"
61
69
"`Py_complex` representation."
62
- msgstr ""
70
+ msgstr "以 C 的 :c:type:`Py_complex` 表示形式來回傳兩個複數間的差。 "
63
71
64
72
#: ../../c-api/complex.rst:51
65
73
msgid ""
66
74
"Return the negation of the complex number *num*, using the C :c:type:"
67
75
"`Py_complex` representation."
68
- msgstr ""
76
+ msgstr "以 C 的 :c:type:`Py_complex` 表示形式來回傳複數 *num* 的相反數 (negation)。 "
69
77
70
78
#: ../../c-api/complex.rst:57
71
79
msgid ""
72
80
"Return the product of two complex numbers, using the C :c:type:`Py_complex` "
73
81
"representation."
74
- msgstr ""
82
+ msgstr "以 C 的 :c:type:`Py_complex` 表示形式來回傳兩個複數的乘積。 "
75
83
76
84
#: ../../c-api/complex.rst:63
77
85
msgid ""
78
86
"Return the quotient of two complex numbers, using the C :c:type:`Py_complex` "
79
87
"representation."
80
- msgstr ""
88
+ msgstr "以 C 的 :c:type:`Py_complex` 表示形式來回傳兩個複數的商。 "
81
89
82
90
#: ../../c-api/complex.rst:66
83
91
msgid ""
84
92
"If *divisor* is null, this method returns zero and sets :c:data:`errno` to :"
85
93
"c:macro:`!EDOM`."
86
94
msgstr ""
95
+ "如果 *divisor* 為 null,則此方法會回傳零並將 :c:data:`errno` 設定為 :c:macro:"
96
+ "`!EDOM`。"
87
97
88
98
#: ../../c-api/complex.rst:72
89
99
msgid ""
90
100
"Return the exponentiation of *num* by *exp*, using the C :c:type:"
91
101
"`Py_complex` representation."
92
102
msgstr ""
103
+ "以 C 的 :c:type:`Py_complex` 表示形式來回傳 *num* 的 *exp* 次方的結果。"
93
104
94
105
#: ../../c-api/complex.rst:75
95
106
msgid ""
96
107
"If *num* is null and *exp* is not a positive real number, this method "
97
108
"returns zero and sets :c:data:`errno` to :c:macro:`!EDOM`."
98
109
msgstr ""
110
+ "如果 *num* 為 null 且 *exp* 不是正實數,則此方法會回傳零並將 :c:data:`errno` "
111
+ "設定為 :c:macro:`!EDOM`。"
99
112
100
113
#: ../../c-api/complex.rst:80
101
114
msgid "Complex Numbers as Python Objects"
102
- msgstr ""
115
+ msgstr "作為 Python 物件的複數 "
103
116
104
117
#: ../../c-api/complex.rst:85
105
118
msgid ""
106
119
"This subtype of :c:type:`PyObject` represents a Python complex number object."
107
- msgstr ""
120
+ msgstr "這個 :c:type:`PyObject` 的子型別代表一個 Python 複數物件。 "
108
121
109
122
#: ../../c-api/complex.rst:90
110
123
msgid ""
111
124
"This instance of :c:type:`PyTypeObject` represents the Python complex number "
112
125
"type. It is the same object as :class:`complex` in the Python layer."
113
126
msgstr ""
127
+ "這個 :c:type:`PyTypeObject` 的實例代表 Python 複數型別。它與 Python 層中的 :"
128
+ "class:`complex` 是同一個物件。"
114
129
115
130
#: ../../c-api/complex.rst:96
116
131
msgid ""
117
132
"Return true if its argument is a :c:type:`PyComplexObject` or a subtype of :"
118
133
"c:type:`PyComplexObject`. This function always succeeds."
119
134
msgstr ""
135
+ "如果其引數是一個 :c:type:`PyComplexObject` 或者是 :c:type:`PyComplexObject` "
136
+ "的子型別,則會回傳 true。這個函式不會失敗。"
120
137
121
138
#: ../../c-api/complex.rst:102
122
139
msgid ""
123
140
"Return true if its argument is a :c:type:`PyComplexObject`, but not a "
124
141
"subtype of :c:type:`PyComplexObject`. This function always succeeds."
125
142
msgstr ""
143
+ "如果其引數是一個 :c:type:`PyComplexObject`,但不是 :c:type:`PyComplexObject` "
144
+ "的子型別,則會回傳 true。這個函式不會失敗。"
126
145
127
146
#: ../../c-api/complex.rst:108
128
147
msgid ""
129
148
"Create a new Python complex number object from a C :c:type:`Py_complex` "
130
149
"value."
131
- msgstr ""
150
+ msgstr "從 C 的 :c:type:`Py_complex` 值建立一個新的 Python 複數物件。 "
132
151
133
152
#: ../../c-api/complex.rst:113
134
153
msgid "Return a new :c:type:`PyComplexObject` object from *real* and *imag*."
135
- msgstr ""
154
+ msgstr "從 *real* 和 *imag* 回傳一個新的 :c:type:`PyComplexObject` 物件。 "
136
155
137
156
#: ../../c-api/complex.rst:118
138
157
msgid "Return the real part of *op* as a C :c:expr:`double`."
139
- msgstr ""
158
+ msgstr "以 C 的 :c:expr:`double` 形式回傳 *op* 的實部。 "
140
159
141
160
#: ../../c-api/complex.rst:123
142
161
msgid "Return the imaginary part of *op* as a C :c:expr:`double`."
143
- msgstr ""
162
+ msgstr "將 *op* 的虛部作為 C 的 :c:expr:`double` 回傳。 "
144
163
145
164
#: ../../c-api/complex.rst:128
146
165
msgid "Return the :c:type:`Py_complex` value of the complex number *op*."
147
- msgstr ""
166
+ msgstr "回傳複數 *op* 的 :c:type:`Py_complex` 值。 "
148
167
149
168
#: ../../c-api/complex.rst:130
150
169
msgid ""
@@ -155,6 +174,11 @@ msgid ""
155
174
"defined then it falls back to :meth:`~object.__index__`. Upon failure, this "
156
175
"method returns ``-1.0`` as a real value."
157
176
msgstr ""
177
+ "如果 *op* 不是 Python 複數物件,但有一個 :meth:`~object.__complex__` 方法,則"
178
+ "首先會呼叫該方法將 *op* 轉換為 Python 複數物件。如果 :meth:`!__complex__` 並"
179
+ "未定義,那麼它會回退到 :meth:`~object.__float__`。如果 :meth:`!__float__` 未"
180
+ "定義,則它將繼續回退為 :meth:`~object.__index__`。失敗時,此方法回傳 "
181
+ "``-1.0`` 作為實部值。"
158
182
159
183
#: ../../c-api/complex.rst:137
160
184
msgid "Use :meth:`~object.__index__` if available."
0 commit comments