1
- # SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2001-2022, Python Software Foundation
1
+ # Copyright (C) 2001-2023, Python Software Foundation
3
2
# This file is distributed under the same license as the Python package.
4
3
#
5
4
# Translators:
5
+ # Liang-Bo Wang <me@liang2.tw>, 2015
6
+ # Matt Wang <mattwang44@gmail.com>, 2023
6
7
msgid ""
7
8
msgstr ""
8
9
"Project-Id-Version : Python 3.11\n "
9
10
"Report-Msgid-Bugs-To : \n "
10
11
"POT-Creation-Date : 2022-04-03 00:14+0000\n "
11
- "PO-Revision-Date : 2015-12-09 17:51+0000 \n "
12
- "Last-Translator : Liang-Bo Wang <me@liang2.tw >\n "
12
+ "PO-Revision-Date : 2023-07-01 03:44+0800 \n "
13
+ "Last-Translator : Matt Wang <mattwang44@gmail.com >\n "
13
14
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
15
"tw)\n "
15
16
"Language : zh_TW\n "
16
17
"MIME-Version : 1.0\n "
17
18
"Content-Type : text/plain; charset=UTF-8\n "
18
19
"Content-Transfer-Encoding : 8bit\n "
19
20
"Plural-Forms : nplurals=1; plural=0;\n "
21
+ "X-Generator : Poedit 3.2.2\n "
20
22
21
23
#: ../../c-api/iter.rst:6
22
24
msgid "Iterator Protocol"
23
- msgstr ""
25
+ msgstr "疊代器協議 "
24
26
25
27
#: ../../c-api/iter.rst:8
26
28
msgid "There are two functions specifically for working with iterators."
27
- msgstr ""
29
+ msgstr "有兩個專門用於疊代器的函式。 "
28
30
29
31
#: ../../c-api/iter.rst:12
30
32
msgid ""
31
33
"Return non-zero if the object *o* can be safely passed to :c:func:"
32
34
"`PyIter_Next`, and ``0`` otherwise. This function always succeeds."
33
35
msgstr ""
36
+ "如果物件 *o* 可以安全地傳遞給 :c:func:`PyIter_Next` 則回傳非零 (non-zero),否"
37
+ "則回傳 0。這個函式一定會執行成功。"
34
38
35
39
#: ../../c-api/iter.rst:17
36
40
msgid ""
37
41
"Return non-zero if the object *o* provides the :class:`AsyncIterator` "
38
42
"protocol, and ``0`` otherwise. This function always succeeds."
39
43
msgstr ""
44
+ "如果物件 *o* 有提供 :class:`AsyncIterator` 協議,則回傳非零,否則回傳 0。這個"
45
+ "函式一定會執行成功。"
40
46
41
47
#: ../../c-api/iter.rst:24
42
48
msgid ""
@@ -46,34 +52,38 @@ msgid ""
46
52
"an error occurs while retrieving the item, returns ``NULL`` and passes along "
47
53
"the exception."
48
54
msgstr ""
55
+ "回傳疊代器 *o* 的下一個值。根據 :c:func:`PyIter_Check`,該物件必須是一個疊代"
56
+ "器(由呼叫者檢查)。如果沒有剩餘值,則回傳 ``NULL`` 且不設定例外。如果檢索項"
57
+ "目時發生錯誤,則回傳 ``NULL`` 並傳遞例外。"
49
58
50
59
#: ../../c-api/iter.rst:30
51
60
msgid ""
52
61
"To write a loop which iterates over an iterator, the C code should look "
53
62
"something like this::"
54
- msgstr ""
63
+ msgstr "要編寫一個疊代於疊代器的迴圈,C 程式碼應該會像這樣: "
55
64
56
65
#: ../../c-api/iter.rst:59
57
66
msgid ""
58
67
"The enum value used to represent different results of :c:func:`PyIter_Send`."
59
- msgstr ""
68
+ msgstr "用於表示 :c:func:`PyIter_Send` 不同結果的列舉 (enum) 值。 "
60
69
61
70
#: ../../c-api/iter.rst:66
62
71
msgid "Sends the *arg* value into the iterator *iter*. Returns:"
63
- msgstr ""
72
+ msgstr "將 *arg* 值發送到疊代器 *iter* 中。回傳: "
64
73
65
74
#: ../../c-api/iter.rst:68
66
75
msgid ""
67
76
"``PYGEN_RETURN`` if iterator returns. Return value is returned via *presult*."
68
- msgstr ""
77
+ msgstr "如果疊代器有回傳則為 ``PYGEN_RETURN``。回傳值透過 *presult* 回傳。 "
69
78
70
79
#: ../../c-api/iter.rst:69
71
80
msgid ""
72
81
"``PYGEN_NEXT`` if iterator yields. Yielded value is returned via *presult*."
73
82
msgstr ""
83
+ "如果疊代器有產生 (yield) 則為 ``PYGEN_NEXT``。產生值透過 *presult* 回傳。"
74
84
75
85
#: ../../c-api/iter.rst:70
76
86
msgid ""
77
87
"``PYGEN_ERROR`` if iterator has raised and exception. *presult* is set to "
78
88
"``NULL``."
79
- msgstr ""
89
+ msgstr "如果疊代器引發例外則為 ``PYGEN_ERROR``。 *presult* 被設定為 ``NULL``。 "
0 commit comments