Skip to content

Commit 7d4bcd6

Browse files
committed
feat: to rst:232
- note, in rst:232, two unique are basically not the same, I need to ask for the advice here.
1 parent 94cb0a5 commit 7d4bcd6

File tree

1 file changed

+30
-7
lines changed

1 file changed

+30
-7
lines changed

library/itertools.po

Lines changed: 30 additions & 7 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: 2024-06-16 12:00+0800\n"
11+
"PO-Revision-Date: 2024-06-24 21:55+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"
@@ -440,21 +440,23 @@ msgstr ""
440440
msgid ""
441441
"Make an iterator that returns accumulated sums or accumulated results from "
442442
"other binary functions."
443-
msgstr ""
444-
"建立一個回傳累積和的疊代器,或其他二進位函式的"
445-
"累積結果。"
443+
msgstr "建立一個回傳累積和的疊代器,或其他二進位函式的累積結果。"
446444

447445
#: ../../library/itertools.rst:106
448446
msgid ""
449447
"The *function* defaults to addition. The *function* should accept two "
450448
"arguments, an accumulated total and a value from the *iterable*."
451449
msgstr ""
450+
"*function* 預設為加法。*function* 應接受兩個引數,即累積總和和來自 "
451+
"*iterable* 的值。"
452452

453453
#: ../../library/itertools.rst:109
454454
msgid ""
455455
"If an *initial* value is provided, the accumulation will start with that "
456456
"value and the output will have one more element than the input iterable."
457457
msgstr ""
458+
"如果提供了 *initial* 值,則累積將從該值開始,並且輸出的元素數將比輸入的可疊代"
459+
"物件多一個。"
458460

459461
#: ../../library/itertools.rst:113 ../../library/itertools.rst:182
460462
#: ../../library/itertools.rst:236 ../../library/itertools.rst:279
@@ -472,26 +474,32 @@ msgid ""
472474
"amortization-schedule>`_ can be built by accumulating interest and applying "
473475
"payments:"
474476
msgstr ""
477+
"*function* 引數可以被設定為 :func:`min` 以得到連續的最小值,設定為 :func:"
478+
"`max` 以得到連續的最大值,或者設定為 :func:`operator.mul` 以得到連續的乘積。"
479+
"也可以透過累積利息和付款來建立\\ `攤銷表 (Amortization tables) <https://www."
480+
"ramseysolutions.com/real-estate/amortization-schedule>`_ :"
475481

476482
#: ../../library/itertools.rst:153
477483
msgid ""
478484
"See :func:`functools.reduce` for a similar function that returns only the "
479485
"final accumulated value."
480486
msgstr ""
487+
"可參見 :func:`functools.reduce`,其是個類似的函式,但僅回傳最終的累積值。"
481488

482489
#: ../../library/itertools.rst:158
483490
msgid "Added the optional *function* parameter."
484-
msgstr "新增選用的 *function* 參數。"
491+
msgstr "新增可選的 *function* 參數。"
485492

486493
#: ../../library/itertools.rst:161
487494
msgid "Added the optional *initial* parameter."
488-
msgstr "新增選用的 *initial* 參數。"
495+
msgstr "新增可選的 *initial* 參數。"
489496

490497
#: ../../library/itertools.rst:167
491498
msgid ""
492499
"Batch data from the *iterable* into tuples of length *n*. The last batch may "
493500
"be shorter than *n*."
494501
msgstr ""
502+
"將來自 *iterable* 的資料分批為長度為 *n* 的元組。最後一個批次可能比 *n* 短。"
495503

496504
#: ../../library/itertools.rst:170
497505
msgid ""
@@ -500,6 +508,9 @@ msgid ""
500508
"is yielded as soon as the batch is full or when the input iterable is "
501509
"exhausted:"
502510
msgstr ""
511+
"對輸入的可疊代物件進行迴圈,並將資料累積到大小為 *n* 的元組中。輸入是惰性消耗"
512+
"的,會剛好足夠填充一批的資料。一旦批次填滿或輸入的可疊代物件耗盡,結果就會被"
513+
"產出:"
503514

504515
#: ../../library/itertools.rst:197
505516
msgid ""
@@ -508,16 +519,21 @@ msgid ""
508519
"are exhausted. Used for treating consecutive sequences as a single "
509520
"sequence. Roughly equivalent to::"
510521
msgstr ""
522+
"建立一個疊代器,從第一個可疊代物件回傳元素直到其耗盡,然後繼續處理下一個可疊"
523+
"代物件,直到所有可疊代物件都耗盡。用於將連續的序列做為單一序列處理。大致等同"
524+
"於: ::"
511525

512526
#: ../../library/itertools.rst:210
513527
msgid ""
514528
"Alternate constructor for :func:`chain`. Gets chained inputs from a single "
515529
"iterable argument that is evaluated lazily. Roughly equivalent to::"
516530
msgstr ""
531+
":func:`chain` 的另一個建構函式。從單個可疊代的引數中得到鏈接的輸入,該引數是"
532+
"惰性計算的。大致等同於:"
517533

518534
#: ../../library/itertools.rst:221
519535
msgid "Return *r* length subsequences of elements from the input *iterable*."
520-
msgstr ""
536+
msgstr "從輸入 *iterable* 中回傳長度為 *r* 的元素的子序列。"
521537

522538
#: ../../library/itertools.rst:223
523539
msgid ""
@@ -526,20 +542,27 @@ msgid ""
526542
"`math.comb` which computes ``n! / r! / (n - r)!`` when ``0 ≤ r ≤ n`` or zero "
527543
"when ``r > n``."
528544
msgstr ""
545+
"輸出是 :func:`product` 的子序列,僅保留作為 *iterable* 子序列的條目。輸出的長"
546+
"度由 :func:`math.comb` 給定,當 ``0 ≤ r ≤ n`` 時,計算 ``n! / r! / (n - r)!"
547+
"``,當 ``r > n`` 時為零。"
529548

530549
#: ../../library/itertools.rst:228
531550
msgid ""
532551
"The combination tuples are emitted in lexicographic order according to the "
533552
"order of the input *iterable*. If the input *iterable* is sorted, the output "
534553
"tuples will be produced in sorted order."
535554
msgstr ""
555+
"根據輸入值 *iterable* 的順序,組合元組按字典順序輸出。如果輸入的 *iterable* "
556+
"已經排序,則輸出的元組也將按排序的順序產生。"
536557

537558
#: ../../library/itertools.rst:232
538559
msgid ""
539560
"Elements are treated as unique based on their position, not on their value. "
540561
"If the input elements are unique, there will be no repeated values within "
541562
"each combination."
542563
msgstr ""
564+
"元素是根據它們的位置來決定其唯一性,而不是它們的值。如果輸入的元素都是獨特"
565+
"的,則每個組合內將不會有重複的值。"
543566

544567
#: ../../library/itertools.rst:263
545568
msgid ""

0 commit comments

Comments
 (0)