Skip to content

Commit 94cb0a5

Browse files
committed
feat: to rst:102
1 parent 5334cb2 commit 94cb0a5

File tree

1 file changed

+37
-20
lines changed

1 file changed

+37
-20
lines changed

library/itertools.po

Lines changed: 37 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
1010
"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"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1414
"tw)\n"
@@ -17,6 +17,7 @@ msgstr ""
1717
"Content-Type: text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"Plural-Forms: nplurals=1; plural=0;\n"
20+
"X-Generator: Poedit 3.4.4\n"
2021

2122
#: ../../library/itertools.rst:2
2223
msgid ""
@@ -29,6 +30,9 @@ msgid ""
2930
"by constructs from APL, Haskell, and SML. Each has been recast in a form "
3031
"suitable for Python."
3132
msgstr ""
33+
"這個模組實作了許多 :term:`疊代器 (iterator) <iterator>` 構建塊 (building "
34+
"block),其靈感來自 APL、Haskell 和 SML 的結構。每個構建塊都以適合 Python 的形"
35+
"式來重新設計。"
3236

3337
#: ../../library/itertools.rst:24
3438
msgid ""
@@ -37,13 +41,19 @@ msgid ""
3741
"algebra\" making it possible to construct specialized tools succinctly and "
3842
"efficiently in pure Python."
3943
msgstr ""
44+
"這個模組標準化了快速且高效率利用記憶體的核心工具集,這些工具本身或組合使用都"
45+
"很有用。它們共同構成了一個\\ \"疊代器代數 (iterator algebra)\\ \" ,使得在純 "
46+
"Python 中簡潔且高效地建構專用工具成為可能。"
4047

4148
#: ../../library/itertools.rst:29
4249
msgid ""
4350
"For instance, SML provides a tabulation tool: ``tabulate(f)`` which produces "
4451
"a sequence ``f(0), f(1), ...``. The same effect can be achieved in Python "
4552
"by combining :func:`map` and :func:`count` to form ``map(f, count())``."
4653
msgstr ""
54+
"例如,SML 提供了一個造表工具:``tabulate(f)``,它產生一個序列 ``f(0), "
55+
"f(1), ...``。在 Python 中,可以通過結合 :func:`map` 和 :func:`count` 組成 "
56+
"``map(f, count())`` 以達到同樣的效果。"
4757

4858
#: ../../library/itertools.rst:33
4959
msgid ""
@@ -53,15 +63,18 @@ msgid ""
5363
"efficient dot-product: ``sum(starmap(operator.mul, zip(vec1, vec2, "
5464
"strict=True)))``."
5565
msgstr ""
66+
"這些工具及其內建的對等部分 (counterpart) 也可以很好地與 :mod:`operator` 模組"
67+
"中的高速函式配合使用。例如,乘法運算子可以對映到兩個向量上以組成高效率的內"
68+
"積:``sum(starmap(operator.mul, zip(vec1, vec2, strict=True)))``。"
5669

5770
#: ../../library/itertools.rst:39
5871
msgid "**Infinite iterators:**"
59-
msgstr ""
72+
msgstr "**無限疊代器:**"
6073

6174
#: ../../library/itertools.rst:42 ../../library/itertools.rst:52
6275
#: ../../library/itertools.rst:73
6376
msgid "Iterator"
64-
msgstr ""
77+
msgstr "疊代器"
6578

6679
#: ../../library/itertools.rst:42 ../../library/itertools.rst:52
6780
#: ../../library/itertools.rst:73
@@ -119,15 +132,15 @@ msgstr "elem [,n]"
119132

120133
#: ../../library/itertools.rst:46
121134
msgid "elem, elem, elem, ... endlessly or up to n times"
122-
msgstr ""
135+
msgstr "elem, elem, elem,... 重複無限次或 n 次"
123136

124137
#: ../../library/itertools.rst:46
125138
msgid "``repeat(10, 3) → 10 10 10``"
126139
msgstr "``repeat(10, 3) → 10 10 10``"
127140

128141
#: ../../library/itertools.rst:49
129142
msgid "**Iterators terminating on the shortest input sequence:**"
130-
msgstr ""
143+
msgstr "**在最短輸入序列 (shortest input sequence) 處終止的疊代器:**"
131144

132145
#: ../../library/itertools.rst:54
133146
msgid ":func:`accumulate`"
@@ -183,7 +196,7 @@ msgstr ":func:`chain.from_iterable`"
183196

184197
#: ../../library/itertools.rst:57 ../../library/itertools.rst:63
185198
msgid "iterable"
186-
msgstr ""
199+
msgstr "可疊代物件"
187200

188201
#: ../../library/itertools.rst:57
189202
msgid "``chain.from_iterable(['ABC', 'DEF']) → A B C D E F``"
@@ -195,7 +208,7 @@ msgstr ":func:`compress`"
195208

196209
#: ../../library/itertools.rst:58
197210
msgid "data, selectors"
198-
msgstr ""
211+
msgstr "data, selectors"
199212

200213
#: ../../library/itertools.rst:58
201214
msgid "(d[0] if s[0]), (d[1] if s[1]), ..."
@@ -216,7 +229,7 @@ msgstr "predicate, seq"
216229

217230
#: ../../library/itertools.rst:59
218231
msgid "seq[n], seq[n+1], starting when predicate fails"
219-
msgstr ""
232+
msgstr "seq[n], seq[n+1],當 predicate 失敗時開始"
220233

221234
#: ../../library/itertools.rst:59
222235
msgid "``dropwhile(lambda x: x<5, [1,4,6,3,8]) → 6 3 8``"
@@ -228,7 +241,7 @@ msgstr ":func:`filterfalse`"
228241

229242
#: ../../library/itertools.rst:60
230243
msgid "elements of seq where predicate(elem) fails"
231-
msgstr ""
244+
msgstr "當 predicate(elem) 失敗時 seq 的元素"
232245

233246
#: ../../library/itertools.rst:60
234247
msgid "``filterfalse(lambda x: x<5, [1,4,6,3,8]) → 6 8``"
@@ -244,7 +257,7 @@ msgstr "iterable[, key]"
244257

245258
#: ../../library/itertools.rst:61
246259
msgid "sub-iterators grouped by value of key(v)"
247-
msgstr ""
260+
msgstr "根據 key(v) 的值分群的子疊代器"
248261

249262
#: ../../library/itertools.rst:62
250263
msgid ":func:`islice`"
@@ -256,7 +269,7 @@ msgstr "seq, [start,] stop [, step]"
256269

257270
#: ../../library/itertools.rst:62
258271
msgid "elements from seq[start:stop:step]"
259-
msgstr ""
272+
msgstr "seq[start:stop:step] 的元素"
260273

261274
#: ../../library/itertools.rst:62
262275
msgid "``islice('ABCDEFG', 2, None) → C D E F G``"
@@ -296,7 +309,7 @@ msgstr ":func:`takewhile`"
296309

297310
#: ../../library/itertools.rst:65
298311
msgid "seq[0], seq[1], until predicate fails"
299-
msgstr ""
312+
msgstr "seq[0], seq[1],直到 predicate 失敗"
300313

301314
#: ../../library/itertools.rst:65
302315
msgid "``takewhile(lambda x: x<5, [1,4,6,3,8]) → 1 4``"
@@ -312,7 +325,7 @@ msgstr "it, n"
312325

313326
#: ../../library/itertools.rst:66
314327
msgid "it1, it2, ... itn splits one iterator into n"
315-
msgstr ""
328+
msgstr "it1, it2, ... itn,將一個疊代器分成 n 個"
316329

317330
#: ../../library/itertools.rst:67
318331
msgid ":func:`zip_longest`"
@@ -328,7 +341,7 @@ msgstr "``zip_longest('ABCD', 'xy', fillvalue='-') → Ax By C- D-``"
328341

329342
#: ../../library/itertools.rst:70
330343
msgid "**Combinatoric iterators:**"
331-
msgstr ""
344+
msgstr "**\\ 組合疊代器:**"
332345

333346
#: ../../library/itertools.rst:75
334347
msgid ":func:`product`"
@@ -340,7 +353,7 @@ msgstr "p, q, ... [repeat=1]"
340353

341354
#: ../../library/itertools.rst:75
342355
msgid "cartesian product, equivalent to a nested for-loop"
343-
msgstr ""
356+
msgstr "笛卡爾乘積 (cartesian product),相當於巢狀的 for 迴圈"
344357

345358
#: ../../library/itertools.rst:76
346359
msgid ":func:`permutations`"
@@ -352,7 +365,7 @@ msgstr "p[, r]"
352365

353366
#: ../../library/itertools.rst:76
354367
msgid "r-length tuples, all possible orderings, no repeated elements"
355-
msgstr ""
368+
msgstr "長度為 r 的元組,所有可能的定序,無重複元素"
356369

357370
#: ../../library/itertools.rst:77
358371
msgid ":func:`combinations`"
@@ -364,19 +377,19 @@ msgstr "p, r"
364377

365378
#: ../../library/itertools.rst:77
366379
msgid "r-length tuples, in sorted order, no repeated elements"
367-
msgstr ""
380+
msgstr "長度為 r 的元組,按照排序過後的定序,無重複元素"
368381

369382
#: ../../library/itertools.rst:78
370383
msgid ":func:`combinations_with_replacement`"
371384
msgstr ":func:`combinations_with_replacement`"
372385

373386
#: ../../library/itertools.rst:78
374387
msgid "r-length tuples, in sorted order, with repeated elements"
375-
msgstr ""
388+
msgstr "長度為 r 的元組,按照排序過後的定序,有重複元素"
376389

377390
#: ../../library/itertools.rst:82
378391
msgid "Examples"
379-
msgstr ""
392+
msgstr "範例"
380393

381394
#: ../../library/itertools.rst:84
382395
msgid "``product('ABCD', repeat=2)``"
@@ -412,20 +425,24 @@ msgstr "``AA AB AC AD BB BC BD CC CD DD``"
412425

413426
#: ../../library/itertools.rst:94
414427
msgid "Itertool Functions"
415-
msgstr ""
428+
msgstr "Itertool 函式"
416429

417430
#: ../../library/itertools.rst:96
418431
msgid ""
419432
"The following module functions all construct and return iterators. Some "
420433
"provide streams of infinite length, so they should only be accessed by "
421434
"functions or loops that truncate the stream."
422435
msgstr ""
436+
"以下的模組函式都會建構並回傳疊代器。一些函式提供無限長度的串流 (stream),因此"
437+
"應僅由截斷串流的函式或迴圈來存取它們。"
423438

424439
#: ../../library/itertools.rst:103
425440
msgid ""
426441
"Make an iterator that returns accumulated sums or accumulated results from "
427442
"other binary functions."
428443
msgstr ""
444+
"建立一個回傳累積和的疊代器,或其他二進位函式的"
445+
"累積結果。"
429446

430447
#: ../../library/itertools.rst:106
431448
msgid ""

0 commit comments

Comments
 (0)