66# Translators:
77# Vegetables <[email protected] >, 201988# Freesand Leo <[email protected] >, 20199+ # Sean Chao <[email protected] >, 2020910#
1011#, fuzzy
1112msgid ""
@@ -14,7 +15,7 @@ msgstr ""
1415"Report-Msgid-Bugs-To : \n "
1516"POT-Creation-Date : 2020-07-06 03:41+0000\n "
1617"PO-Revision-Date : 2017-02-16 17:36+0000\n "
17- "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2019 \n "
18+ "Last-Translator : Sean Chao <seanchao0804@gmail .com>, 2020 \n "
1819"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1920"MIME-Version : 1.0\n "
2021"Content-Type : text/plain; charset=UTF-8\n "
@@ -37,76 +38,88 @@ msgid ""
3738"be distinguished from a number. Use :c:func:`PyErr_Occurred` to "
3839"disambiguate."
3940msgstr ""
41+ "在出错时,大多数 ``PyLong_As*`` API返回 ``(返回类型)-1`` ,无法与一般的数字区分开来。请使用 "
42+ ":c:func:`PyErr_Occurred` 来区分。"
4043
4144#: ../../c-api/long.rst:18
4245msgid "This subtype of :c:type:`PyObject` represents a Python integer object."
43- msgstr ""
46+ msgstr "表示 Python 整数对象的 :c:type:`PyObject` 子类型。 "
4447
4548#: ../../c-api/long.rst:23
4649msgid ""
4750"This instance of :c:type:`PyTypeObject` represents the Python integer type. "
4851"This is the same object as :class:`int` in the Python layer."
4952msgstr ""
53+ "这个 :c:type:`PyTypeObject` 的实例表示 Python 的整数类型。与Python层中的 :class:`int` 相同。"
5054
5155#: ../../c-api/long.rst:29
5256msgid ""
5357"Return true if its argument is a :c:type:`PyLongObject` or a subtype of "
5458":c:type:`PyLongObject`."
55- msgstr ""
59+ msgstr "如果参数是 :c:type:`PyLongObject` 或 :c:type:`PyLongObject` 的子类型,返回 true 。 "
5660
5761#: ../../c-api/long.rst:35
5862msgid ""
5963"Return true if its argument is a :c:type:`PyLongObject`, but not a subtype "
6064"of :c:type:`PyLongObject`."
61- msgstr ""
65+ msgstr "如果参数是 :c:type:`PyLongObject` 但不是 :c:type:`PyLongObject` 的子类型,返回 true。 "
6266
6367#: ../../c-api/long.rst:41
6468msgid ""
6569"Return a new :c:type:`PyLongObject` object from *v*, or ``NULL`` on failure."
66- msgstr ""
70+ msgstr "由 *v* 返回一个新的 :c:type:`PyLongObject` 对象,失败时返回 ``NULL`` 。 "
6771
6872#: ../../c-api/long.rst:43
6973msgid ""
7074"The current implementation keeps an array of integer objects for all "
7175"integers between ``-5`` and ``256``, when you create an int in that range "
7276"you actually just get back a reference to the existing object."
7377msgstr ""
78+ "当前的实现维护了一个整数对象数组,包含 ``-5`` 和 ``256`` 之间的所有整数对象。当你在这个范围内创建一个 int "
79+ "时,实际上得到的是一个对已有对象的引用。"
7480
7581#: ../../c-api/long.rst:50
7682msgid ""
7783"Return a new :c:type:`PyLongObject` object from a C :c:type:`unsigned long`,"
7884" or ``NULL`` on failure."
7985msgstr ""
86+ "由 C :c:type:`unsigned long` 类型返回一个新的 :c:type:`PyLongObject` 对象,失败时返回 "
87+ "``NULL`` 。"
8088
8189#: ../../c-api/long.rst:56
8290msgid ""
8391"Return a new :c:type:`PyLongObject` object from a C :c:type:`Py_ssize_t`, or"
8492" ``NULL`` on failure."
8593msgstr ""
94+ "从 C :c:type:`Py_ssize_t` 类型返回一个新的 :c:type:`PyLongObject` 对象,如果失败则返回``NULL``。"
8695
8796#: ../../c-api/long.rst:62
8897msgid ""
8998"Return a new :c:type:`PyLongObject` object from a C :c:type:`size_t`, or "
9099"``NULL`` on failure."
91100msgstr ""
101+ "从 C :c:type:`size_t` 返回一个新的 :c:type:`PyLongObject` 对象,如果失败则返回``NULL``。"
92102
93103#: ../../c-api/long.rst:68
94104msgid ""
95105"Return a new :c:type:`PyLongObject` object from a C :c:type:`long long`, or "
96106"``NULL`` on failure."
97107msgstr ""
108+ "从 C :c:type:`long long` 返回一个新的 :c:type:`PyLongObject` 对象,失败时返回``NULL``。"
98109
99110#: ../../c-api/long.rst:74
100111msgid ""
101112"Return a new :c:type:`PyLongObject` object from a C :c:type:`unsigned long "
102113"long`, or ``NULL`` on failure."
103114msgstr ""
115+ "从 C :c:type:`unsigned long long` 返回一个新的 :c:type:`PyLongObject` "
116+ "对象,失败时返回``NULL``。"
104117
105118#: ../../c-api/long.rst:80
106119msgid ""
107120"Return a new :c:type:`PyLongObject` object from the integer part of *v*, or "
108121"``NULL`` on failure."
109- msgstr ""
122+ msgstr "从 *v* 的整数部分返回一个新的 :c:type:`PyLongObject` 对象,如果失败则返回``NULL``。 "
110123
111124#: ../../c-api/long.rst:86
112125msgid ""
@@ -120,6 +133,11 @@ msgid ""
120133"and single underscores after a base specifier and between digits are "
121134"ignored. If there are no digits, :exc:`ValueError` will be raised."
122135msgstr ""
136+ "根据 *str* 字符串值返回一个新的 :c:type:`PyLongObject` ,*base* 指定基数。如果 *pend* 不是 "
137+ "``NULL`` , */*pend* 将指向 *str* 中表示这个数字部分的后面的第一个字符。如果 *base* 是 ``0`` , *str* "
138+ "将使用 :ref:`integers` 定义来解释;在这种情况下,一个非零的十进制数中的前导零会引发一个 :exc:`ValueError` 。如果 "
139+ "*base* 不是 ``0`` ,它必须在 ``2`` 和 ``36`` "
140+ "之间,包括2和36。基数说明符后以及数字之间的前导空格、单下划线将被忽略。如果没有数字,将引发 :exc:`ValueError`。"
123141
124142#: ../../c-api/long.rst:99
125143msgid "Convert a sequence of Unicode digits to a Python integer value."
0 commit comments