55#
66# Translators:
77# Kunkgg <[email protected] >, 20198+ # Freesand Leo <[email protected] >, 202089#
910#, fuzzy
1011msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314"Report-Msgid-Bugs-To : \n "
1415"POT-Creation-Date : 2020-05-31 09:25+0000\n "
1516"PO-Revision-Date : 2017-02-16 17:38+0000\n "
16- "Last-Translator : Kunkgg <goukun07@gmail .com>, 2019 \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 "slice 对象的类型对象。 它与 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 ""
0 commit comments