Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5df0b62

Browse files
[po] auto sync
1 parent 4d43833 commit 5df0b62

2 files changed

Lines changed: 39 additions & 10 deletions

File tree

c-api/long.po

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,18 +168,21 @@ msgid ""
168168
":meth:`__int__` method (if present) to convert it to a "
169169
":c:type:`PyLongObject`."
170170
msgstr ""
171+
"返回 *obj* 的 C :c:type:`long` 表达方式。 如果 *obj* 不是 :c:type:`PyLongObject` "
172+
"的实例,先调用它的 :meth:`__index__` 或 :meth:`__int__` 方法(如果有)将其转换为 "
173+
":c:type:`PyLongObject` 。"
171174

172175
#: ../../c-api/long.rst:134
173176
msgid ""
174177
"Raise :exc:`OverflowError` if the value of *obj* is out of range for a "
175178
":c:type:`long`."
176-
msgstr ""
179+
msgstr "如果 *obj* 的值溢出了 :c:type:`long` 的范围,会抛出 :exc:`OverflowError`。"
177180

178181
#: ../../c-api/long.rst:137 ../../c-api/long.rst:158 ../../c-api/long.rst:180
179182
#: ../../c-api/long.rst:201 ../../c-api/long.rst:224
180183
msgid ""
181184
"Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate."
182-
msgstr ""
185+
msgstr "发生错误时返回 ``-1`` 。使用 :c:func:`PyErr_Occurred` 来消歧义。"
183186

184187
#: ../../c-api/long.rst:139 ../../c-api/long.rst:160 ../../c-api/long.rst:182
185188
#: ../../c-api/long.rst:205 ../../c-api/long.rst:290 ../../c-api/long.rst:310

c-api/number.po

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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)."
100100
msgstr ""
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
103106
msgid ""
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
109112
msgid ""
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
115118
msgid ""
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
121124
msgid ""
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
127130
msgid ""
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
133136
msgid ""
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``."
136139
msgstr ""
140+
"返回 *o1* 右移 *o2* 个比特后的结果,如果失败,返回 ``NULL`` 。等价于 Python 表达式 ``o1 >> o2``。"
137141

138142
#: ../../c-api/number.rst:123
139143
msgid ""
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
145149
msgid ""
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
151155
msgid ""
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
157161
msgid ""
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``."
161165
msgstr ""
166+
"返回 *o1* 、*o2* 相加的结果,如果失败,返回 *NULL* 。当 *o1* 支持时,这个操作直接将值赋给 *o1*。 等价于 Python "
167+
"语句 ``o1 + o2``。"
162168

163169
#: ../../c-api/number.rst:148
164170
msgid ""
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``."
168174
msgstr ""
175+
"返回 *o1* 、*o2* 相减的结果,如果失败,返回 ``NULL`` 。当 *o1* 支持时,这个运算完成后将值赋给 *o1* 。 等价于 "
176+
"Python语句 ``o1 -= o2``。"
169177

170178
#: ../../c-api/number.rst:155
171179
msgid ""
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``."
175183
msgstr ""
184+
"返回 *o1* 、*o2*相乘的结果,如果失败,返回 ``NULL`` 。当 *o1* 支持时,这个运算完成后将值赋给 *o1*。 等价于 Python"
185+
" 语句 ``o1 += o2``。"
176186

177187
#: ../../c-api/number.rst:162
178188
msgid ""
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``."
182192
msgstr ""
193+
"返回 *o1* 、*o2* 做矩阵乘法后的结果,如果失败,返回 ``NULL`` 。当 *o1* 支持时,这个运算完成后将值赋给 *o1*。 等价于 "
194+
"Python 语句 ``o1 @= o2``。"
183195

184196
#: ../../c-api/number.rst:171
185197
msgid ""
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``."
189201
msgstr ""
202+
"返回 *o1* 除以 *o2* 后向下取整的结果,如果失败,返回 ``NULL``。当 *o1* 支持时,这个运算完成后将值赋给 *o1*。 等价于 "
203+
"Python 语句 ``o1 //= o2``。"
190204

191205
#: ../../c-api/number.rst:178
192206
msgid ""
@@ -197,13 +211,18 @@ msgid ""
197211
"floating point value when passed two integers. The operation is done *in-"
198212
"place* when *o1* supports it."
199213
msgstr ""
214+
"返回 *o1* 除以 *o2* 的一个合理的近似值,如果失败,返回 "
215+
"``NULL``。这个值是近似的,因为二进制浮点数是一个近似值,不可能以2为基数来表示出所有实数。这个函数返回两个整数相除得到的浮点数。当 *o1* "
216+
"支持时,这个运算完成后将值赋给 *o1*。"
200217

201218
#: ../../c-api/number.rst:187
202219
msgid ""
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``."
206223
msgstr ""
224+
"返回 *o1* 除以 *o2* 得到的余数,如果失败,返回 ``NULL``。当 *o1* 支持时,这个运算直接使用它储存结果。 等价于 Python "
225+
"语句 ``o1 %= o2``。"
207226

208227
#: ../../c-api/number.rst:196
209228
msgid ""
@@ -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)."
216235
msgstr ""
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
219241
msgid ""
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``."
223245
msgstr ""
246+
"返回 *o1* 左移 *o2* 个比特后的结果,如果失败,返回 ``NULL``。当 *o1* 支持时,这个运算直接使用它储存结果。 等价于 "
247+
"Python 语句 ``o1 <<= o2``。"
224248

225249
#: ../../c-api/number.rst:212
226250
msgid ""
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``."
230254
msgstr ""
255+
"返回 *o1* 右移 *o2* 个比特后的结果,如果失败,返回 ``NULL``。当 *o1* 支持时,这个运算直接使用它储存结果。 等价于 "
256+
"Python 语句 ``o1 >>= o2``。"
231257

232258
#: ../../c-api/number.rst:219
233259
msgid ""

0 commit comments

Comments
 (0)