@@ -8,7 +8,7 @@ msgstr ""
8
8
"Project-Id-Version : Python 3.12\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
10
"POT-Creation-Date : 2024-06-02 00:03+0000\n "
11
- "PO-Revision-Date : 2018-05-23 16:04+0000 \n "
11
+ "PO-Revision-Date : 2024-06-16 12:00+0800 \n "
12
12
"
Last-Translator :
Adrian Liaw <[email protected] >\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
14
"tw)\n "
@@ -17,6 +17,7 @@ msgstr ""
17
17
"Content-Type : text/plain; charset=UTF-8\n "
18
18
"Content-Transfer-Encoding : 8bit\n "
19
19
"Plural-Forms : nplurals=1; plural=0;\n "
20
+ "X-Generator : Poedit 3.4.4\n "
20
21
21
22
#: ../../library/itertools.rst:2
22
23
msgid ""
@@ -29,6 +30,9 @@ msgid ""
29
30
"by constructs from APL, Haskell, and SML. Each has been recast in a form "
30
31
"suitable for Python."
31
32
msgstr ""
33
+ "這個模組實作了許多 :term:`疊代器 (iterator) <iterator>` 構建塊 (building "
34
+ "block),其靈感來自 APL、Haskell 和 SML 的結構。每個構建塊都以適合 Python 的形"
35
+ "式來重新設計。"
32
36
33
37
#: ../../library/itertools.rst:24
34
38
msgid ""
@@ -37,13 +41,19 @@ msgid ""
37
41
"algebra\" making it possible to construct specialized tools succinctly and "
38
42
"efficiently in pure Python."
39
43
msgstr ""
44
+ "這個模組標準化了快速且高效率利用記憶體的核心工具集,這些工具本身或組合使用都"
45
+ "很有用。它們共同構成了一個\\ \" 疊代器代數 (iterator algebra)\\ \" ,使得在純 "
46
+ "Python 中簡潔且高效地建構專用工具成為可能。"
40
47
41
48
#: ../../library/itertools.rst:29
42
49
msgid ""
43
50
"For instance, SML provides a tabulation tool: ``tabulate(f)`` which produces "
44
51
"a sequence ``f(0), f(1), ...``. The same effect can be achieved in Python "
45
52
"by combining :func:`map` and :func:`count` to form ``map(f, count())``."
46
53
msgstr ""
54
+ "例如,SML 提供了一個造表工具:``tabulate(f)``,它產生一個序列 ``f(0), "
55
+ "f(1), ...``。在 Python 中,可以通過結合 :func:`map` 和 :func:`count` 組成 "
56
+ "``map(f, count())`` 以達到同樣的效果。"
47
57
48
58
#: ../../library/itertools.rst:33
49
59
msgid ""
@@ -53,15 +63,18 @@ msgid ""
53
63
"efficient dot-product: ``sum(starmap(operator.mul, zip(vec1, vec2, "
54
64
"strict=True)))``."
55
65
msgstr ""
66
+ "這些工具及其內建的對等部分 (counterpart) 也可以很好地與 :mod:`operator` 模組"
67
+ "中的高速函式配合使用。例如,乘法運算子可以對映到兩個向量上以組成高效率的內"
68
+ "積:``sum(starmap(operator.mul, zip(vec1, vec2, strict=True)))``。"
56
69
57
70
#: ../../library/itertools.rst:39
58
71
msgid "**Infinite iterators:**"
59
- msgstr ""
72
+ msgstr "**無限疊代器:** "
60
73
61
74
#: ../../library/itertools.rst:42 ../../library/itertools.rst:52
62
75
#: ../../library/itertools.rst:73
63
76
msgid "Iterator"
64
- msgstr ""
77
+ msgstr "疊代器 "
65
78
66
79
#: ../../library/itertools.rst:42 ../../library/itertools.rst:52
67
80
#: ../../library/itertools.rst:73
@@ -119,15 +132,15 @@ msgstr "elem [,n]"
119
132
120
133
#: ../../library/itertools.rst:46
121
134
msgid "elem, elem, elem, ... endlessly or up to n times"
122
- msgstr ""
135
+ msgstr "elem, elem, elem,... 重複無限次或 n 次 "
123
136
124
137
#: ../../library/itertools.rst:46
125
138
msgid "``repeat(10, 3) → 10 10 10``"
126
139
msgstr "``repeat(10, 3) → 10 10 10``"
127
140
128
141
#: ../../library/itertools.rst:49
129
142
msgid "**Iterators terminating on the shortest input sequence:**"
130
- msgstr ""
143
+ msgstr "**在最短輸入序列 (shortest input sequence) 處終止的疊代器:** "
131
144
132
145
#: ../../library/itertools.rst:54
133
146
msgid ":func:`accumulate`"
@@ -183,7 +196,7 @@ msgstr ":func:`chain.from_iterable`"
183
196
184
197
#: ../../library/itertools.rst:57 ../../library/itertools.rst:63
185
198
msgid "iterable"
186
- msgstr ""
199
+ msgstr "可疊代物件 "
187
200
188
201
#: ../../library/itertools.rst:57
189
202
msgid "``chain.from_iterable(['ABC', 'DEF']) → A B C D E F``"
@@ -195,7 +208,7 @@ msgstr ":func:`compress`"
195
208
196
209
#: ../../library/itertools.rst:58
197
210
msgid "data, selectors"
198
- msgstr ""
211
+ msgstr "data, selectors "
199
212
200
213
#: ../../library/itertools.rst:58
201
214
msgid "(d[0] if s[0]), (d[1] if s[1]), ..."
@@ -216,7 +229,7 @@ msgstr "predicate, seq"
216
229
217
230
#: ../../library/itertools.rst:59
218
231
msgid "seq[n], seq[n+1], starting when predicate fails"
219
- msgstr ""
232
+ msgstr "seq[n], seq[n+1],當 predicate 失敗時開始 "
220
233
221
234
#: ../../library/itertools.rst:59
222
235
msgid "``dropwhile(lambda x: x<5, [1,4,6,3,8]) → 6 3 8``"
@@ -228,7 +241,7 @@ msgstr ":func:`filterfalse`"
228
241
229
242
#: ../../library/itertools.rst:60
230
243
msgid "elements of seq where predicate(elem) fails"
231
- msgstr ""
244
+ msgstr "當 predicate(elem) 失敗時 seq 的元素 "
232
245
233
246
#: ../../library/itertools.rst:60
234
247
msgid "``filterfalse(lambda x: x<5, [1,4,6,3,8]) → 6 8``"
@@ -244,7 +257,7 @@ msgstr "iterable[, key]"
244
257
245
258
#: ../../library/itertools.rst:61
246
259
msgid "sub-iterators grouped by value of key(v)"
247
- msgstr ""
260
+ msgstr "根據 key(v) 的值分群的子疊代器 "
248
261
249
262
#: ../../library/itertools.rst:62
250
263
msgid ":func:`islice`"
@@ -256,7 +269,7 @@ msgstr "seq, [start,] stop [, step]"
256
269
257
270
#: ../../library/itertools.rst:62
258
271
msgid "elements from seq[start:stop:step]"
259
- msgstr ""
272
+ msgstr "seq[start:stop:step] 的元素 "
260
273
261
274
#: ../../library/itertools.rst:62
262
275
msgid "``islice('ABCDEFG', 2, None) → C D E F G``"
@@ -296,7 +309,7 @@ msgstr ":func:`takewhile`"
296
309
297
310
#: ../../library/itertools.rst:65
298
311
msgid "seq[0], seq[1], until predicate fails"
299
- msgstr ""
312
+ msgstr "seq[0], seq[1],直到 predicate 失敗 "
300
313
301
314
#: ../../library/itertools.rst:65
302
315
msgid "``takewhile(lambda x: x<5, [1,4,6,3,8]) → 1 4``"
@@ -312,7 +325,7 @@ msgstr "it, n"
312
325
313
326
#: ../../library/itertools.rst:66
314
327
msgid "it1, it2, ... itn splits one iterator into n"
315
- msgstr ""
328
+ msgstr "it1, it2, ... itn,將一個疊代器分成 n 個 "
316
329
317
330
#: ../../library/itertools.rst:67
318
331
msgid ":func:`zip_longest`"
@@ -328,7 +341,7 @@ msgstr "``zip_longest('ABCD', 'xy', fillvalue='-') → Ax By C- D-``"
328
341
329
342
#: ../../library/itertools.rst:70
330
343
msgid "**Combinatoric iterators:**"
331
- msgstr ""
344
+ msgstr "** \\ 組合疊代器:** "
332
345
333
346
#: ../../library/itertools.rst:75
334
347
msgid ":func:`product`"
@@ -340,7 +353,7 @@ msgstr "p, q, ... [repeat=1]"
340
353
341
354
#: ../../library/itertools.rst:75
342
355
msgid "cartesian product, equivalent to a nested for-loop"
343
- msgstr ""
356
+ msgstr "笛卡爾乘積 (cartesian product),相當於巢狀的 for 迴圈 "
344
357
345
358
#: ../../library/itertools.rst:76
346
359
msgid ":func:`permutations`"
@@ -352,7 +365,7 @@ msgstr "p[, r]"
352
365
353
366
#: ../../library/itertools.rst:76
354
367
msgid "r-length tuples, all possible orderings, no repeated elements"
355
- msgstr ""
368
+ msgstr "長度為 r 的元組,所有可能的定序,無重複元素 "
356
369
357
370
#: ../../library/itertools.rst:77
358
371
msgid ":func:`combinations`"
@@ -364,19 +377,19 @@ msgstr "p, r"
364
377
365
378
#: ../../library/itertools.rst:77
366
379
msgid "r-length tuples, in sorted order, no repeated elements"
367
- msgstr ""
380
+ msgstr "長度為 r 的元組,按照排序過後的定序,無重複元素 "
368
381
369
382
#: ../../library/itertools.rst:78
370
383
msgid ":func:`combinations_with_replacement`"
371
384
msgstr ":func:`combinations_with_replacement`"
372
385
373
386
#: ../../library/itertools.rst:78
374
387
msgid "r-length tuples, in sorted order, with repeated elements"
375
- msgstr ""
388
+ msgstr "長度為 r 的元組,按照排序過後的定序,有重複元素 "
376
389
377
390
#: ../../library/itertools.rst:82
378
391
msgid "Examples"
379
- msgstr ""
392
+ msgstr "範例 "
380
393
381
394
#: ../../library/itertools.rst:84
382
395
msgid "``product('ABCD', repeat=2)``"
@@ -412,20 +425,24 @@ msgstr "``AA AB AC AD BB BC BD CC CD DD``"
412
425
413
426
#: ../../library/itertools.rst:94
414
427
msgid "Itertool Functions"
415
- msgstr ""
428
+ msgstr "Itertool 函式 "
416
429
417
430
#: ../../library/itertools.rst:96
418
431
msgid ""
419
432
"The following module functions all construct and return iterators. Some "
420
433
"provide streams of infinite length, so they should only be accessed by "
421
434
"functions or loops that truncate the stream."
422
435
msgstr ""
436
+ "以下的模組函式都會建構並回傳疊代器。一些函式提供無限長度的串流 (stream),因此"
437
+ "應僅由截斷串流的函式或迴圈來存取它們。"
423
438
424
439
#: ../../library/itertools.rst:103
425
440
msgid ""
426
441
"Make an iterator that returns accumulated sums or accumulated results from "
427
442
"other binary functions."
428
443
msgstr ""
444
+ "建立一個回傳累積和的疊代器,或其他二進位函式的"
445
+ "累積結果。"
429
446
430
447
#: ../../library/itertools.rst:106
431
448
msgid ""
0 commit comments