@@ -98,95 +98,109 @@ msgid ""
9898"optional. If *o3* is to be ignored, pass :c:data:`Py_None` in its place "
9999"(passing ``NULL`` for *o3* would cause an illegal memory access)."
100100msgstr ""
101+ "请参阅内置函数 :func:`pow`。 如果失败,返回 ``NULL``。 等价于 Python 中的表达式 ``pow(o1, o2, "
102+ "o3)``,其中 *o3* 是可选的。如果要忽略 *o3*,则需传入 :c:data:`Py_None` 作为代替(如果传入 ``NULL`` "
103+ "会导致非法内存访问)。"
101104
102105#: ../../c-api/number.rst:85
103106msgid ""
104107"Returns the negation of *o* on success, or ``NULL`` on failure. This is the "
105108"equivalent of the Python expression ``-o``."
106- msgstr ""
109+ msgstr "返回 *o* 的负值,如果失败,返回 ``NULL`` 。等价于 Python 表达式 ``-o``。 "
107110
108111#: ../../c-api/number.rst:91
109112msgid ""
110113"Returns *o* on success, or ``NULL`` on failure. This is the equivalent of "
111114"the Python expression ``+o``."
112- msgstr ""
115+ msgstr "返回 *o*,如果失败,返回 ``NULL`` 。等价于 Python 表达式 ``+o``。 "
113116
114117#: ../../c-api/number.rst:99
115118msgid ""
116119"Returns the absolute value of *o*, or ``NULL`` on failure. This is the "
117120"equivalent of the Python expression ``abs(o)``."
118- msgstr ""
121+ msgstr "返回 *o* 的绝对值,如果失败,返回 ``NULL``。等价于 Python 表达式 ``abs(o)``。 "
119122
120123#: ../../c-api/number.rst:105
121124msgid ""
122125"Returns the bitwise negation of *o* on success, or ``NULL`` on failure. "
123126"This is the equivalent of the Python expression ``~o``."
124- msgstr ""
127+ msgstr "返回 *o* 的按位取反后的结果,如果失败,返回 ``NULL``。等价于 Python 表达式 ``~o``。 "
125128
126129#: ../../c-api/number.rst:111
127130msgid ""
128131"Returns the result of left shifting *o1* by *o2* on success, or ``NULL`` on "
129132"failure. This is the equivalent of the Python expression ``o1 << o2``."
130- msgstr ""
133+ msgstr "返回 *o1* 左移 *o2* 个比特后的结果,如果失败,返回 ``NULL``。等价于 Python 表达式 ``o1 << o2``。 "
131134
132135#: ../../c-api/number.rst:117
133136msgid ""
134137"Returns the result of right shifting *o1* by *o2* on success, or ``NULL`` on"
135138" failure. This is the equivalent of the Python expression ``o1 >> o2``."
136139msgstr ""
140+ "返回 *o1* 右移 *o2* 个比特后的结果,如果失败,返回 ``NULL`` 。等价于 Python 表达式 ``o1 >> o2``。"
137141
138142#: ../../c-api/number.rst:123
139143msgid ""
140144"Returns the \" bitwise and\" of *o1* and *o2* on success and ``NULL`` on "
141145"failure. This is the equivalent of the Python expression ``o1 & o2``."
142- msgstr ""
146+ msgstr "返回 *o1* 和 *o2* “按位与”的结果,如果失败,返回 ``NULL`` 。等价于 Python 表达式 ``o1 & o2``。 "
143147
144148#: ../../c-api/number.rst:129
145149msgid ""
146150"Returns the \" bitwise exclusive or\" of *o1* by *o2* on success, or ``NULL``"
147151" on failure. This is the equivalent of the Python expression ``o1 ^ o2``."
148- msgstr ""
152+ msgstr "返回 *o1* 和 *o2* “按位异或”的结果,如果失败,返回 ``NULL`` 。等价于Python中的表达式 ``o1 ^o2``。 "
149153
150154#: ../../c-api/number.rst:135
151155msgid ""
152156"Returns the \" bitwise or\" of *o1* and *o2* on success, or ``NULL`` on "
153157"failure. This is the equivalent of the Python expression ``o1 | o2``."
154- msgstr ""
158+ msgstr "返回 *o1* 和 *o2* “按位或”的结果,如果失败,返回 ``NULL`` 。等价于 Python 表达式 ``o1 | o2``。 "
155159
156160#: ../../c-api/number.rst:141
157161msgid ""
158162"Returns the result of adding *o1* and *o2*, or ``NULL`` on failure. The "
159163"operation is done *in-place* when *o1* supports it. This is the equivalent "
160164"of the Python statement ``o1 += o2``."
161165msgstr ""
166+ "返回 *o1* 、*o2* 相加的结果,如果失败,返回 *NULL* 。当 *o1* 支持时,这个操作直接将值赋给 *o1*。 等价于 Python "
167+ "语句 ``o1 + o2``。"
162168
163169#: ../../c-api/number.rst:148
164170msgid ""
165171"Returns the result of subtracting *o2* from *o1*, or ``NULL`` on failure. "
166172"The operation is done *in-place* when *o1* supports it. This is the "
167173"equivalent of the Python statement ``o1 -= o2``."
168174msgstr ""
175+ "返回 *o1* 、*o2* 相减的结果,如果失败,返回 ``NULL`` 。当 *o1* 支持时,这个运算完成后将值赋给 *o1* 。 等价于 "
176+ "Python语句 ``o1 -= o2``。"
169177
170178#: ../../c-api/number.rst:155
171179msgid ""
172180"Returns the result of multiplying *o1* and *o2*, or ``NULL`` on failure. "
173181"The operation is done *in-place* when *o1* supports it. This is the "
174182"equivalent of the Python statement ``o1 *= o2``."
175183msgstr ""
184+ "返回 *o1* 、*o2*相乘的结果,如果失败,返回 ``NULL`` 。当 *o1* 支持时,这个运算完成后将值赋给 *o1*。 等价于 Python"
185+ " 语句 ``o1 += o2``。"
176186
177187#: ../../c-api/number.rst:162
178188msgid ""
179189"Returns the result of matrix multiplication on *o1* and *o2*, or ``NULL`` on"
180190" failure. The operation is done *in-place* when *o1* supports it. This is "
181191"the equivalent of the Python statement ``o1 @= o2``."
182192msgstr ""
193+ "返回 *o1* 、*o2* 做矩阵乘法后的结果,如果失败,返回 ``NULL`` 。当 *o1* 支持时,这个运算完成后将值赋给 *o1*。 等价于 "
194+ "Python 语句 ``o1 @= o2``。"
183195
184196#: ../../c-api/number.rst:171
185197msgid ""
186198"Returns the mathematical floor of dividing *o1* by *o2*, or ``NULL`` on "
187199"failure. The operation is done *in-place* when *o1* supports it. This is "
188200"the equivalent of the Python statement ``o1 //= o2``."
189201msgstr ""
202+ "返回 *o1* 除以 *o2* 后向下取整的结果,如果失败,返回 ``NULL``。当 *o1* 支持时,这个运算完成后将值赋给 *o1*。 等价于 "
203+ "Python 语句 ``o1 //= o2``。"
190204
191205#: ../../c-api/number.rst:178
192206msgid ""
@@ -197,13 +211,18 @@ msgid ""
197211"floating point value when passed two integers. The operation is done *in-"
198212"place* when *o1* supports it."
199213msgstr ""
214+ "返回 *o1* 除以 *o2* 的一个合理的近似值,如果失败,返回 "
215+ "``NULL``。这个值是近似的,因为二进制浮点数是一个近似值,不可能以2为基数来表示出所有实数。这个函数返回两个整数相除得到的浮点数。当 *o1* "
216+ "支持时,这个运算完成后将值赋给 *o1*。"
200217
201218#: ../../c-api/number.rst:187
202219msgid ""
203220"Returns the remainder of dividing *o1* by *o2*, or ``NULL`` on failure. The"
204221" operation is done *in-place* when *o1* supports it. This is the equivalent"
205222" of the Python statement ``o1 %= o2``."
206223msgstr ""
224+ "返回 *o1* 除以 *o2* 得到的余数,如果失败,返回 ``NULL``。当 *o1* 支持时,这个运算直接使用它储存结果。 等价于 Python "
225+ "语句 ``o1 %= o2``。"
207226
208227#: ../../c-api/number.rst:196
209228msgid ""
@@ -214,20 +233,27 @@ msgid ""
214233" pass :c:data:`Py_None` in its place (passing ``NULL`` for *o3* would cause "
215234"an illegal memory access)."
216235msgstr ""
236+ "请参阅内置函数 :func:`pow`。 如果失败,返回 ``NULL``。当 *o1* 支持时,这个运算直接使用它储存结果。当 *o3* 是 "
237+ ":c:data:`Py_None` 时,等价于 Python 语句 ``o1 **= o2``;否则等价于在原来位置储存结果的 ``pow(o1, "
238+ "o2, o3)`` 。如果要忽略 *o3*,则需传入 :c:data:`Py_None` (传入 ``NULL`` 会导致非法内存访问)。"
217239
218240#: ../../c-api/number.rst:205
219241msgid ""
220242"Returns the result of left shifting *o1* by *o2* on success, or ``NULL`` on "
221243"failure. The operation is done *in-place* when *o1* supports it. This is "
222244"the equivalent of the Python statement ``o1 <<= o2``."
223245msgstr ""
246+ "返回 *o1* 左移 *o2* 个比特后的结果,如果失败,返回 ``NULL``。当 *o1* 支持时,这个运算直接使用它储存结果。 等价于 "
247+ "Python 语句 ``o1 <<= o2``。"
224248
225249#: ../../c-api/number.rst:212
226250msgid ""
227251"Returns the result of right shifting *o1* by *o2* on success, or ``NULL`` on"
228252" failure. The operation is done *in-place* when *o1* supports it. This is "
229253"the equivalent of the Python statement ``o1 >>= o2``."
230254msgstr ""
255+ "返回 *o1* 右移 *o2* 个比特后的结果,如果失败,返回 ``NULL``。当 *o1* 支持时,这个运算直接使用它储存结果。 等价于 "
256+ "Python 语句 ``o1 >>= o2``。"
231257
232258#: ../../c-api/number.rst:219
233259msgid ""
0 commit comments