- Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathiterator.po
76 lines (68 loc) · 3.46 KB
/
iterator.po
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2021, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Freesand Leo <yuqinju@163.com>, 2019
# Alpha Du <alphanow@gmail.com>, 2019
#
#,fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-01 16:02+0000\n"
"PO-Revision-Date: 2019-09-01 03:38+0000\n"
"Last-Translator: Alpha Du <alphanow@gmail.com>, 2019\n"
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#:../../c-api/iterator.rst:6
msgid"Iterator Objects"
msgstr"迭代器对象"
#:../../c-api/iterator.rst:8
msgid""
"Python provides two general-purpose iterator objects. The first, a sequence"
" iterator, works with an arbitrary sequence supporting the "
":meth:`__getitem__` method. The second works with a callable object and a "
"sentinel value, calling the callable for each item in the sequence, and "
"ending the iteration when the sentinel value is returned."
msgstr""
"Python 提供了两个通用迭代器对象。 第一个是序列迭代器,它使用支持 :meth:`__getitem__` 方法的任意序列。 "
"第二个使用可调用对象和一个 sentinel 值,为序列中的每个项调用可调用对象,并在返回 sentinel 值时结束迭代。"
#:../../c-api/iterator.rst:17
msgid""
"Type object for iterator objects returned by :c:func:`PySeqIter_New` and the"
" one-argument form of the :func:`iter` built-in function for built-in "
"sequence types."
msgstr":c:func:`PySeqIter_New` 返回迭代器对象的类型对象和内置序列类型内置函数 :func:`iter` 的单参数形式。"
#:../../c-api/iterator.rst:24
msgid"Return true if the type of *op* is :c:data:`PySeqIter_Type`."
msgstr"如果 *op* 的类型为 :c:data:`PySeqIter_Type` 则返回 true。"
#:../../c-api/iterator.rst:29
msgid""
"Return an iterator that works with a general sequence object, *seq*. The "
"iteration ends when the sequence raises :exc:`IndexError` for the "
"subscripting operation."
msgstr"返回一个与常规序列对象一起使用的迭代器 *seq*。 当序列订阅操作引发 :exc:`IndexError` 时,迭代结束。"
#:../../c-api/iterator.rst:36
msgid""
"Type object for iterator objects returned by :c:func:`PyCallIter_New` and "
"the two-argument form of the :func:`iter` built-in function."
msgstr"由函数 :c:func:`PyCallIter_New` 和 :func:`iter` 内置函数的双参数形式返回的迭代器对象类型对象。"
#:../../c-api/iterator.rst:42
msgid"Return true if the type of *op* is :c:data:`PyCallIter_Type`."
msgstr"如果 *op* 的类型为 :c:data:`PyCallIter_Type` 则返回 true。"
#:../../c-api/iterator.rst:47
msgid""
"Return a new iterator. The first parameter, *callable*, can be any Python "
"callable object that can be called with no parameters; each call to it "
"should return the next item in the iteration. When *callable* returns a "
"value equal to *sentinel*, the iteration will be terminated."
msgstr""
"返回一个新的迭代器。 第一个参数 *callable* 可以是任何可以在没有参数的情况下调用的 Python "
"可调用对象;每次调用都应该返回迭代中的下一个项目。 当 *callable* 返回等于 *sentinel* 的值时,迭代将终止。"