55#
66# Translators:
778- # Freesand Leo <[email protected] >, 201998# Azuk 443 <[email protected] >, 20209+ # Freesand Leo <[email protected] >, 20201010#
1111#, fuzzy
1212msgid ""
@@ -15,7 +15,7 @@ msgstr ""
1515"Report-Msgid-Bugs-To : \n "
1616"POT-Creation-Date : 2020-05-31 09:25+0000\n "
1717"PO-Revision-Date : 2017-02-16 17:37+0000\n "
18- "
Last-Translator :
Azuk 443 <[email protected] >, 2020\n"
18+ "
Last-Translator :
Freesand Leo <[email protected] >, 2020\n"
1919"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2020"MIME-Version : 1.0\n "
2121"Content-Type : text/plain; charset=UTF-8\n "
@@ -262,38 +262,45 @@ msgid ""
262262"failure. The operation is done *in-place* when *o1* supports it. This is "
263263"the equivalent of the Python statement ``o1 &= o2``."
264264msgstr ""
265+ "成功时返回 *o1* 和 *o2* \" 按位与\" 的结果,失败时返回 ``NULL``。 在 *o1* 支持的前提下该操作将 *原地* 执行。 等价与"
266+ " Python 语句 ``o1 &= o2``。"
265267
266268#: ../../c-api/number.rst:226
267269msgid ""
268270"Returns the \" bitwise exclusive or\" of *o1* by *o2* on success, or ``NULL``"
269271" on failure. The operation is done *in-place* when *o1* supports it. This "
270272"is the equivalent of the Python statement ``o1 ^= o2``."
271273msgstr ""
274+ "成功时返回 *o1* 和 *o2* \" 按位异或的结果,失败时返回 ``NULL``。 在 *o1* 支持的前提下该操作将 *原地* 执行。 等价与 "
275+ "Python 语句 ``o1 ^= o2``。"
272276
273277#: ../../c-api/number.rst:233
274278msgid ""
275279"Returns the \" bitwise or\" of *o1* and *o2* on success, or ``NULL`` on "
276280"failure. The operation is done *in-place* when *o1* supports it. This is "
277281"the equivalent of the Python statement ``o1 |= o2``."
278282msgstr ""
283+ "成功时返回 *o1* 和 *o2* \" 按位或\" 的结果,失败时返回 ``NULL``。 在 *o1* 支持的前提下该操作将 *原地* 执行。 等价于"
284+ " Python 语句 ``o1 |= o2``。"
279285
280286#: ../../c-api/number.rst:242
281287msgid ""
282288"Returns the *o* converted to an integer object on success, or ``NULL`` on "
283289"failure. This is the equivalent of the Python expression ``int(o)``."
284- msgstr ""
290+ msgstr "成功时返回 *o* 转换为整数对象后的结果,失败时返回 ``NULL``。 等价于 Python 表达式 ``int(o)``。 "
285291
286292#: ../../c-api/number.rst:250
287293msgid ""
288294"Returns the *o* converted to a float object on success, or ``NULL`` on "
289295"failure. This is the equivalent of the Python expression ``float(o)``."
290- msgstr ""
296+ msgstr "成功时返回 *o* 转换为浮点对象后的结果,失败时返回 ``NULL``。 等价于 Python 表达式 ``float(o)``。 "
291297
292298#: ../../c-api/number.rst:256
293299msgid ""
294300"Returns the *o* converted to a Python int on success or ``NULL`` with a "
295301":exc:`TypeError` exception raised on failure."
296302msgstr ""
303+ "成功时返回 *o* 转换为 Python int 类型后的结果,失败时返回 ``NULL`` 并引发 :exc:`TypeError` 异常。"
297304
298305#: ../../c-api/number.rst:262
299306msgid ""
@@ -323,6 +330,9 @@ msgid ""
323330"exception is cleared and the value is clipped to ``PY_SSIZE_T_MIN`` for a "
324331"negative integer or ``PY_SSIZE_T_MAX`` for a positive integer."
325332msgstr ""
333+ "如果 *o* 可以被转换为 Python int 类型但尝试转换为 Py_ssize_t 值则会引发 :exc:`OverflowError`,这时 "
334+ "*exc* 参数为将被引发的异常类型 (通常是 :exc:`IndexError` 或 :exc:`OverflowError`)。 如果 *exc* "
335+ "为 ``NULL``,则异常会被清除并且值会被裁剪为负整数 ``PY_SSIZE_T_MIN`` 或正整数 ``PY_SSIZE_T_MAX``。"
326336
327337#: ../../c-api/number.rst:284
328338msgid ""
0 commit comments