55#
66# Translators:
77# Kunkgg <[email protected] >, 20208+ # Freesand Leo <[email protected] >, 202089#
910#, fuzzy
1011msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314"Report-Msgid-Bugs-To : \n "
1415"POT-Creation-Date : 2020-02-09 12:40+0000\n "
1516"PO-Revision-Date : 2020-05-30 11:51+0000\n "
16- "Last-Translator : Kunkgg <goukun07@gmail .com>, 2020\n "
17+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2020\n "
1718"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1819"MIME-Version : 1.0\n "
1920"Content-Type : text/plain; charset=UTF-8\n "
@@ -29,11 +30,11 @@ msgstr "切片对象"
2930msgid ""
3031"The type object for slice objects. This is the same as :class:`slice` in "
3132"the Python layer."
32- msgstr ""
33+ msgstr "切片对象的类型对象。 它与 Python 层面的 :class:`slice` 是相同的对象。 "
3334
3435#: ../../c-api/slice.rst:17
3536msgid "Return true if *ob* is a slice object; *ob* must not be ``NULL``."
36- msgstr ""
37+ msgstr "如果 *ob* 是一个 slice 对象则返回真值;*ob* 必须不为 ``NULL``。 "
3738
3839#: ../../c-api/slice.rst:22
3940msgid ""
@@ -43,29 +44,35 @@ msgid ""
4344"``None`` will be used for the corresponding attribute. Return ``NULL`` if "
4445"the new object could not be allocated."
4546msgstr ""
47+ "返回一个具有给定值的新 slice 对象。 *start*, *stop* 和 *step* 形参会被用作 slice 对象相应名称的属性的值。 "
48+ "这些值中的任何一个都可以为 ``NULL``,在这种情况下将使用 ``None`` 作为对应属性的值。 如果新对象无法被分配则返回 ``NULL``。"
4649
4750#: ../../c-api/slice.rst:31
4851msgid ""
4952"Retrieve the start, stop and step indices from the slice object *slice*, "
5053"assuming a sequence of length *length*. Treats indices greater than *length*"
5154" as errors."
5255msgstr ""
56+ "从 slice 对象 *slice* 提取 start, stop 和 step 索引号,将序列长度视为 *length*。 大于 *length* "
57+ "的序列号将被当作错误。"
5358
5459#: ../../c-api/slice.rst:35
5560msgid ""
5661"Returns ``0`` on success and ``-1`` on error with no exception set (unless "
5762"one of the indices was not :const:`None` and failed to be converted to an "
5863"integer, in which case ``-1`` is returned with an exception set)."
5964msgstr ""
65+ "成功时返回 ``0``,出错时返回 ``-1`` 并且不设置异常(除非某个序列号不为 :const:`None` 且无法被转换为整数,在这种情况下会返回"
66+ " ``-1`` 并且设置一个异常)。"
6067
6168#: ../../c-api/slice.rst:39
6269msgid "You probably do not want to use this function."
63- msgstr ""
70+ msgstr "你可能不会打算使用此函数。 "
6471
6572#: ../../c-api/slice.rst:41 ../../c-api/slice.rst:72
6673msgid ""
6774"The parameter type for the *slice* parameter was ``PySliceObject*`` before."
68- msgstr ""
75+ msgstr "之前 *slice* 形参的形参类型是 ``PySliceObject*``。 "
6976
7077#: ../../c-api/slice.rst:48
7178msgid ""
@@ -75,21 +82,25 @@ msgid ""
7582" bounds indices are clipped in a manner consistent with the handling of "
7683"normal slices."
7784msgstr ""
85+ ":c:func:`PySlice_GetIndices` 的可用替代。 从 slice 对象 *slice* 提取 start, stop 和 step"
86+ " 索引号,将序列长度视为 *length*,并将切片的长度保存在 *slicelength* 中,超出范围的索引号会以与普通切片一致的方式进行剪切。"
7887
7988#: ../../c-api/slice.rst:54
8089msgid "Returns ``0`` on success and ``-1`` on error with exception set."
81- msgstr ""
90+ msgstr "成功时返回 ``0``,出错时返回 ``-1`` 并且不设置异常。 "
8291
8392#: ../../c-api/slice.rst:57
8493msgid ""
8594"This function is considered not safe for resizable sequences. Its invocation"
8695" should be replaced by a combination of :c:func:`PySlice_Unpack` and "
8796":c:func:`PySlice_AdjustIndices` where ::"
8897msgstr ""
98+ "此函数对于可变大小序列来说是不安全的。 对它的调用应被替换为 :c:func:`PySlice_Unpack` 和 "
99+ ":c:func:`PySlice_AdjustIndices` 的组合,其中 ::"
89100
90101#: ../../c-api/slice.rst:65
91102msgid "is replaced by ::"
92- msgstr ""
103+ msgstr "会被替换为 :: "
93104
94105#: ../../c-api/slice.rst:76
95106msgid ""
@@ -99,13 +110,19 @@ msgid ""
99110":c:func:`!PySlice_Unpack` and :c:func:`!PySlice_AdjustIndices`. Arguments "
100111"*start*, *stop* and *step* are evaluated more than once."
101112msgstr ""
113+ "如果 ``Py_LIMITED_API`` 未设置或设置为 ``0x03050400`` 与 ``0x03060000`` 之前的值(不包含边界)或 "
114+ "``0x03060100`` 或更大则 :c:func:`!PySlice_GetIndicesEx` 会被实现为一个使用 "
115+ ":c:func:`!PySlice_Unpack` 和 :c:func:`!PySlice_AdjustIndices` 的宏。 参数 *start*,"
116+ " *stop* 和 *step* 会被多被求值。"
102117
103118#: ../../c-api/slice.rst:83
104119msgid ""
105120"If ``Py_LIMITED_API`` is set to the value less than ``0x03050400`` or "
106121"between ``0x03060000`` and ``0x03060100`` (not including) "
107122":c:func:`!PySlice_GetIndicesEx` is a deprecated function."
108123msgstr ""
124+ "如果 ``Py_LIMITED_API`` 设置为小于 ``0x03050400`` 或 ``0x03060000`` 与 ``0x03060100``"
125+ " 之间的值(不包括边界)则 :c:func:`!PySlice_GetIndicesEx` 为已弃用的函数。"
109126
110127#: ../../c-api/slice.rst:91
111128msgid ""
@@ -115,31 +132,37 @@ msgid ""
115132"``PY_SSIZE_T_MIN`` to ``PY_SSIZE_T_MIN``, and silently boost the step values"
116133" less than ``-PY_SSIZE_T_MAX`` to ``-PY_SSIZE_T_MAX``."
117134msgstr ""
135+ "从切片对象中将 start, stop 和 step 数据成员提取为 C 整数。 会静默地将大于 ``PY_SSIZE_T_MAX`` 的值减小为 "
136+ "``PY_SSIZE_T_MAX``,静默地将小于 ``PY_SSIZE_T_MIN`` 的 start 和 stop 值增大为 "
137+ "``PY_SSIZE_T_MIN``,并静默地将小于 ``-PY_SSIZE_T_MAX`` 的 step 值增大为 "
138+ "``-PY_SSIZE_T_MAX``。"
118139
119140#: ../../c-api/slice.rst:97
120141msgid "Return ``-1`` on error, ``0`` on success."
121- msgstr ""
142+ msgstr "出错时返回 ``-1``,成功时返回 ``0``。 "
122143
123144#: ../../c-api/slice.rst:104
124145msgid ""
125146"Adjust start/end slice indices assuming a sequence of the specified length. "
126147"Out of bounds indices are clipped in a manner consistent with the handling "
127148"of normal slices."
128- msgstr ""
149+ msgstr "将 start/end 切片索引号根据指定的序列长度进行调整。 超出范围的索引号会以与普通切片一致的方式进行剪切。 "
129150
130151#: ../../c-api/slice.rst:108
131152msgid ""
132153"Return the length of the slice. Always successful. Doesn't call Python "
133154"code."
134- msgstr ""
155+ msgstr "返回切片的长度。 此操作总是会成功。 不会调用 Python 代码。 "
135156
136157#: ../../c-api/slice.rst:115
137158msgid "Ellipsis Object"
138- msgstr ""
159+ msgstr "Ellipsis 对象 "
139160
140161#: ../../c-api/slice.rst:120
141162msgid ""
142163"The Python ``Ellipsis`` object. This object has no methods. It needs to be"
143164" treated just like any other object with respect to reference counts. Like "
144165":c:data:`Py_None` it is a singleton object."
145166msgstr ""
167+ "Python 的 ``Ellipsis`` 对象。 该对象没有任何方法。 它必须以与任何其他对象一样的方式遵循引用计数。 它与 "
168+ ":c:data:`Py_None` 一样是单例对象。"
0 commit comments