|
1 | 1 | # SOME DESCRIPTIVE TITLE.
|
2 |
| -# Copyright (C) 2001-2023, Python Software Foundation |
| 2 | +# Copyright (C) 2001-2024, Python Software Foundation |
3 | 3 | # This file is distributed under the same license as the Python package.
|
4 | 4 | # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
5 | 5 | #
|
6 | 6 | # Translators:
|
7 |
| -# 叶浚安 <ye.pandaaaa906@gmail.com>, 2021 |
8 |
| -# Freesand Leo <yuqinju@163.com>, 2023 |
| 7 | +# Rafael Fontenelle <rffontenelle@gmail.com>, 2024 |
9 | 8 | #
|
10 | 9 | #, fuzzy
|
11 | 10 | msgid ""
|
12 | 11 | msgstr ""
|
13 | 12 | "Project-Id-Version: Python 3.12\n"
|
14 | 13 | "Report-Msgid-Bugs-To: \n"
|
15 |
| -"POT-Creation-Date: 2023-07-29 02:08+0000\n" |
16 |
| -"PO-Revision-Date: 2021-06-28 00:48+0000\n" |
17 |
| -"Last-Translator: Freesand Leo <yuqinju@163.com>, 2023\n" |
| 14 | +"POT-Creation-Date: 2024-07-19 14:50+0000\n" |
| 15 | +"PO-Revision-Date: 2024-05-11 00:32+0000\n" |
| 16 | +"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n" |
18 | 17 | "Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
|
19 | 18 | "MIME-Version: 1.0\n"
|
20 | 19 | "Content-Type: text/plain; charset=UTF-8\n"
|
@@ -52,130 +51,144 @@ msgid ""
|
52 | 51 | "The C structure which corresponds to the value portion of a Python complex "
|
53 | 52 | "number object. Most of the functions for dealing with complex number "
|
54 | 53 | "objects use structures of this type as input or output values, as "
|
55 |
| -"appropriate. It is defined as::" |
56 |
| -msgstr "这是一个对应Python复数对象的值部分的C结构体。绝大部分处理复数对象的函数都用这类型的结构体作为输入或者输出值,它可近似地定义为:" |
| 54 | +"appropriate." |
| 55 | +msgstr "" |
| 56 | + |
| 57 | +#: ../../c-api/complex.rst:33 |
| 58 | +msgid "The structure is defined as::" |
| 59 | +msgstr "" |
57 | 60 |
|
58 |
| -#: ../../c-api/complex.rst:39 |
| 61 | +#: ../../c-api/complex.rst:43 |
59 | 62 | msgid ""
|
60 | 63 | "Return the sum of two complex numbers, using the C :c:type:`Py_complex` "
|
61 | 64 | "representation."
|
62 | 65 | msgstr "返回两个复数的和,用 C 类型 :c:type:`Py_complex` 表示。"
|
63 | 66 |
|
64 |
| -#: ../../c-api/complex.rst:45 |
| 67 | +#: ../../c-api/complex.rst:49 |
65 | 68 | msgid ""
|
66 | 69 | "Return the difference between two complex numbers, using the C "
|
67 | 70 | ":c:type:`Py_complex` representation."
|
68 | 71 | msgstr "返回两个复数的差,用 C 类型 :c:type:`Py_complex` 表示。"
|
69 | 72 |
|
70 |
| -#: ../../c-api/complex.rst:51 |
| 73 | +#: ../../c-api/complex.rst:55 |
71 | 74 | msgid ""
|
72 | 75 | "Return the negation of the complex number *num*, using the C "
|
73 | 76 | ":c:type:`Py_complex` representation."
|
74 | 77 | msgstr "返回复数 *num* 的负值,用 C :c:type:`Py_complex` 表示。"
|
75 | 78 |
|
76 |
| -#: ../../c-api/complex.rst:57 |
| 79 | +#: ../../c-api/complex.rst:61 |
77 | 80 | msgid ""
|
78 | 81 | "Return the product of two complex numbers, using the C :c:type:`Py_complex` "
|
79 | 82 | "representation."
|
80 | 83 | msgstr "返回两个复数的乘积,用 C 类型 :c:type:`Py_complex` 表示。"
|
81 | 84 |
|
82 |
| -#: ../../c-api/complex.rst:63 |
| 85 | +#: ../../c-api/complex.rst:67 |
83 | 86 | msgid ""
|
84 | 87 | "Return the quotient of two complex numbers, using the C :c:type:`Py_complex`"
|
85 | 88 | " representation."
|
86 | 89 | msgstr "返回两个复数的商,用 C 类型 :c:type:`Py_complex` 表示。"
|
87 | 90 |
|
88 |
| -#: ../../c-api/complex.rst:66 |
| 91 | +#: ../../c-api/complex.rst:70 |
89 | 92 | msgid ""
|
90 | 93 | "If *divisor* is null, this method returns zero and sets :c:data:`errno` to "
|
91 | 94 | ":c:macro:`!EDOM`."
|
92 | 95 | msgstr "如果 *divisor* 为空,则此方法将返回零并将 :c:data:`errno` 设为 :c:macro:`!EDOM`。"
|
93 | 96 |
|
94 |
| -#: ../../c-api/complex.rst:72 |
| 97 | +#: ../../c-api/complex.rst:76 |
95 | 98 | msgid ""
|
96 | 99 | "Return the exponentiation of *num* by *exp*, using the C "
|
97 | 100 | ":c:type:`Py_complex` representation."
|
98 | 101 | msgstr "返回 *num* 的 *exp* 次幂,用 C 类型 :c:type:`Py_complex` 表示。"
|
99 | 102 |
|
100 |
| -#: ../../c-api/complex.rst:75 |
| 103 | +#: ../../c-api/complex.rst:79 |
101 | 104 | msgid ""
|
102 | 105 | "If *num* is null and *exp* is not a positive real number, this method "
|
103 | 106 | "returns zero and sets :c:data:`errno` to :c:macro:`!EDOM`."
|
104 | 107 | msgstr ""
|
105 | 108 | "如果 *num* 为空且 *exp* 不是正实数,则此方法将返回零并将 :c:data:`errno` 设为 :c:macro:`!EDOM`。"
|
106 | 109 |
|
107 |
| -#: ../../c-api/complex.rst:80 |
| 110 | +#: ../../c-api/complex.rst:84 |
108 | 111 | msgid "Complex Numbers as Python Objects"
|
109 | 112 | msgstr "表示复数的Python对象"
|
110 | 113 |
|
111 |
| -#: ../../c-api/complex.rst:85 |
| 114 | +#: ../../c-api/complex.rst:89 |
112 | 115 | msgid ""
|
113 | 116 | "This subtype of :c:type:`PyObject` represents a Python complex number "
|
114 | 117 | "object."
|
115 | 118 | msgstr "这个C类型 :c:type:`PyObject` 的子类型代表一个 Python 复数对象。"
|
116 | 119 |
|
117 |
| -#: ../../c-api/complex.rst:90 |
| 120 | +#: ../../c-api/complex.rst:94 |
118 | 121 | msgid ""
|
119 | 122 | "This instance of :c:type:`PyTypeObject` represents the Python complex number"
|
120 | 123 | " type. It is the same object as :class:`complex` in the Python layer."
|
121 | 124 | msgstr ""
|
122 | 125 | "这是个属于 :c:type:`PyTypeObject` 的代表Python复数类型的实例。在Python层面的类型 :class:`complex` "
|
123 | 126 | "是同一个对象。"
|
124 | 127 |
|
125 |
| -#: ../../c-api/complex.rst:96 |
| 128 | +#: ../../c-api/complex.rst:100 |
126 | 129 | msgid ""
|
127 | 130 | "Return true if its argument is a :c:type:`PyComplexObject` or a subtype of "
|
128 | 131 | ":c:type:`PyComplexObject`. This function always succeeds."
|
129 | 132 | msgstr ""
|
130 | 133 | "如果它的参数是一个 :c:type:`PyComplexObject` 或者 :c:type:`PyComplexObject` 的子类型则返回真值。 "
|
131 | 134 | "此函数总是会成功执行。"
|
132 | 135 |
|
133 |
| -#: ../../c-api/complex.rst:102 |
| 136 | +#: ../../c-api/complex.rst:106 |
134 | 137 | msgid ""
|
135 | 138 | "Return true if its argument is a :c:type:`PyComplexObject`, but not a "
|
136 | 139 | "subtype of :c:type:`PyComplexObject`. This function always succeeds."
|
137 | 140 | msgstr ""
|
138 | 141 | "如果它的参数是一个 :c:type:`PyComplexObject` 但不是 :c:type:`PyComplexObject` 的子类型则返回真值。"
|
139 | 142 | " 此函数总是会成功执行。"
|
140 | 143 |
|
141 |
| -#: ../../c-api/complex.rst:108 |
| 144 | +#: ../../c-api/complex.rst:112 |
142 | 145 | msgid ""
|
143 | 146 | "Create a new Python complex number object from a C :c:type:`Py_complex` "
|
144 |
| -"value." |
145 |
| -msgstr "根据C类型 :c:type:`Py_complex` 的值生成一个新的Python复数对象。" |
146 |
| - |
147 |
| -#: ../../c-api/complex.rst:113 |
148 |
| -msgid "Return a new :c:type:`PyComplexObject` object from *real* and *imag*." |
149 |
| -msgstr "根据 *real* 和 *imag* 返回一个新的C类型 :c:type:`PyComplexObject` 对象。" |
| 147 | +"value. Return ``NULL`` with an exception set on error." |
| 148 | +msgstr "" |
150 | 149 |
|
151 | 150 | #: ../../c-api/complex.rst:118
|
| 151 | +msgid "" |
| 152 | +"Return a new :c:type:`PyComplexObject` object from *real* and *imag*. Return" |
| 153 | +" ``NULL`` with an exception set on error." |
| 154 | +msgstr "" |
| 155 | + |
| 156 | +#: ../../c-api/complex.rst:124 |
152 | 157 | msgid "Return the real part of *op* as a C :c:expr:`double`."
|
153 | 158 | msgstr "以 C 类型 :c:expr:`double` 返回 *op* 的实部。"
|
154 | 159 |
|
155 |
| -#: ../../c-api/complex.rst:123 |
| 160 | +#: ../../c-api/complex.rst:126 |
| 161 | +msgid "" |
| 162 | +"Upon failure, this method returns ``-1.0`` with an exception set, so one " |
| 163 | +"should call :c:func:`PyErr_Occurred` to check for errors." |
| 164 | +msgstr "" |
| 165 | + |
| 166 | +#: ../../c-api/complex.rst:132 |
156 | 167 | msgid "Return the imaginary part of *op* as a C :c:expr:`double`."
|
157 | 168 | msgstr "以 C 类型 :c:expr:`double` 返回 *op* 的虚部。"
|
158 | 169 |
|
159 |
| -#: ../../c-api/complex.rst:128 |
| 170 | +#: ../../c-api/complex.rst:137 |
160 | 171 | msgid "Return the :c:type:`Py_complex` value of the complex number *op*."
|
161 | 172 | msgstr "返回复数 *op* 的C类型 :c:type:`Py_complex` 值。"
|
162 | 173 |
|
163 |
| -#: ../../c-api/complex.rst:130 |
| 174 | +#: ../../c-api/complex.rst:139 |
164 | 175 | msgid ""
|
165 | 176 | "If *op* is not a Python complex number object but has a "
|
166 | 177 | ":meth:`~object.__complex__` method, this method will first be called to "
|
167 | 178 | "convert *op* to a Python complex number object. If :meth:`!__complex__` is "
|
168 | 179 | "not defined then it falls back to :meth:`~object.__float__`. If "
|
169 | 180 | ":meth:`!__float__` is not defined then it falls back to "
|
170 |
| -":meth:`~object.__index__`. Upon failure, this method returns ``-1.0`` as a " |
171 |
| -"real value." |
| 181 | +":meth:`~object.__index__`." |
172 | 182 | msgstr ""
|
173 |
| -"如果 *op* 不是一个 Python 复数对象但是具有 :meth:`~object.__complex__` 方法,则会先调用该方法将 *op* " |
174 |
| -"转换为 Python 复数对象。 如果 :meth:`!__complex__` 未定义则将回退至 :meth:`~object.__float__`。" |
175 |
| -" 如果 :meth:`!__float__` 未定义则将回退至 :meth:`~object.__index__`。 当失败时,该方法将返回实数值 " |
176 |
| -"``-1.0``。" |
177 | 183 |
|
178 |
| -#: ../../c-api/complex.rst:137 |
| 184 | +#: ../../c-api/complex.rst:145 |
| 185 | +msgid "" |
| 186 | +"Upon failure, this method returns :c:type:`Py_complex` with " |
| 187 | +":c:member:`~Py_complex.real` set to ``-1.0`` and with an exception set, so " |
| 188 | +"one should call :c:func:`PyErr_Occurred` to check for errors." |
| 189 | +msgstr "" |
| 190 | + |
| 191 | +#: ../../c-api/complex.rst:149 |
179 | 192 | msgid "Use :meth:`~object.__index__` if available."
|
180 | 193 | msgstr "如果可能将使用 :meth:`~object.__index__`。"
|
181 | 194 |
|
|
0 commit comments