-
-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathiterator.po
More file actions
79 lines (71 loc) · 3.63 KB
/
iterator.po
File metadata and controls
79 lines (71 loc) · 3.63 KB
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
77
78
79
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2025, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Rafael Fontenelle <[email protected]>, 2025
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-07-25 16:03+0000\n"
"PO-Revision-Date: 2025-07-18 19:57+0000\n"
"Last-Translator: Rafael Fontenelle <[email protected]>, 2025\n"
"Language-Team: Chinese (China) (https://app.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:`~object.__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:`~object.__getitem__` "
"方法的任意序列一起使用。 第二个迭代器使用一个可调用对象和一个哨兵值,为序列中的每个项目调用可调用对象,并在返回哨兵值时结束迭代。"
#: ../../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`. This function "
"always succeeds."
msgstr "如果 *op* 的类型为 :c:data:`PySeqIter_Type` 则返回真值。 此函数总是会成功执行。"
#: ../../c-api/iterator.rst:30
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:37
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:43
msgid ""
"Return true if the type of *op* is :c:data:`PyCallIter_Type`. This function"
" always succeeds."
msgstr "如果 *op* 的类型为 :c:data:`PyCallIter_Type` 则返回真值。 此函数总是会成功执行。"
#: ../../c-api/iterator.rst:49
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* 的值时,迭代将终止。"