@@ -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 : 2024-06-16 12:00 +0800\n "
11
+ "PO-Revision-Date : 2024-06-24 21:55 +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 "
@@ -440,21 +440,23 @@ msgstr ""
440
440
msgid ""
441
441
"Make an iterator that returns accumulated sums or accumulated results from "
442
442
"other binary functions."
443
- msgstr ""
444
- "建立一個回傳累積和的疊代器,或其他二進位函式的"
445
- "累積結果。"
443
+ msgstr "建立一個回傳累積和的疊代器,或其他二進位函式的累積結果。"
446
444
447
445
#: ../../library/itertools.rst:106
448
446
msgid ""
449
447
"The *function* defaults to addition. The *function* should accept two "
450
448
"arguments, an accumulated total and a value from the *iterable*."
451
449
msgstr ""
450
+ "*function* 預設為加法。*function* 應接受兩個引數,即累積總和和來自 "
451
+ "*iterable* 的值。"
452
452
453
453
#: ../../library/itertools.rst:109
454
454
msgid ""
455
455
"If an *initial* value is provided, the accumulation will start with that "
456
456
"value and the output will have one more element than the input iterable."
457
457
msgstr ""
458
+ "如果提供了 *initial* 值,則累積將從該值開始,並且輸出的元素數將比輸入的可疊代"
459
+ "物件多一個。"
458
460
459
461
#: ../../library/itertools.rst:113 ../../library/itertools.rst:182
460
462
#: ../../library/itertools.rst:236 ../../library/itertools.rst:279
@@ -472,26 +474,32 @@ msgid ""
472
474
"amortization-schedule>`_ can be built by accumulating interest and applying "
473
475
"payments:"
474
476
msgstr ""
477
+ "*function* 引數可以被設定為 :func:`min` 以得到連續的最小值,設定為 :func:"
478
+ "`max` 以得到連續的最大值,或者設定為 :func:`operator.mul` 以得到連續的乘積。"
479
+ "也可以透過累積利息和付款來建立\\ `攤銷表 (Amortization tables) <https://www."
480
+ "ramseysolutions.com/real-estate/amortization-schedule>`_ :"
475
481
476
482
#: ../../library/itertools.rst:153
477
483
msgid ""
478
484
"See :func:`functools.reduce` for a similar function that returns only the "
479
485
"final accumulated value."
480
486
msgstr ""
487
+ "可參見 :func:`functools.reduce`,其是個類似的函式,但僅回傳最終的累積值。"
481
488
482
489
#: ../../library/itertools.rst:158
483
490
msgid "Added the optional *function* parameter."
484
- msgstr "新增選用的 *function* 參數。"
491
+ msgstr "新增可選的 *function* 參數。"
485
492
486
493
#: ../../library/itertools.rst:161
487
494
msgid "Added the optional *initial* parameter."
488
- msgstr "新增選用的 *initial* 參數。"
495
+ msgstr "新增可選的 *initial* 參數。"
489
496
490
497
#: ../../library/itertools.rst:167
491
498
msgid ""
492
499
"Batch data from the *iterable* into tuples of length *n*. The last batch may "
493
500
"be shorter than *n*."
494
501
msgstr ""
502
+ "將來自 *iterable* 的資料分批為長度為 *n* 的元組。最後一個批次可能比 *n* 短。"
495
503
496
504
#: ../../library/itertools.rst:170
497
505
msgid ""
@@ -500,6 +508,9 @@ msgid ""
500
508
"is yielded as soon as the batch is full or when the input iterable is "
501
509
"exhausted:"
502
510
msgstr ""
511
+ "對輸入的可疊代物件進行迴圈,並將資料累積到大小為 *n* 的元組中。輸入是惰性消耗"
512
+ "的,會剛好足夠填充一批的資料。一旦批次填滿或輸入的可疊代物件耗盡,結果就會被"
513
+ "產出:"
503
514
504
515
#: ../../library/itertools.rst:197
505
516
msgid ""
@@ -508,16 +519,21 @@ msgid ""
508
519
"are exhausted. Used for treating consecutive sequences as a single "
509
520
"sequence. Roughly equivalent to::"
510
521
msgstr ""
522
+ "建立一個疊代器,從第一個可疊代物件回傳元素直到其耗盡,然後繼續處理下一個可疊"
523
+ "代物件,直到所有可疊代物件都耗盡。用於將連續的序列做為單一序列處理。大致等同"
524
+ "於: ::"
511
525
512
526
#: ../../library/itertools.rst:210
513
527
msgid ""
514
528
"Alternate constructor for :func:`chain`. Gets chained inputs from a single "
515
529
"iterable argument that is evaluated lazily. Roughly equivalent to::"
516
530
msgstr ""
531
+ ":func:`chain` 的另一個建構函式。從單個可疊代的引數中得到鏈接的輸入,該引數是"
532
+ "惰性計算的。大致等同於:"
517
533
518
534
#: ../../library/itertools.rst:221
519
535
msgid "Return *r* length subsequences of elements from the input *iterable*."
520
- msgstr ""
536
+ msgstr "從輸入 *iterable* 中回傳長度為 *r* 的元素的子序列。 "
521
537
522
538
#: ../../library/itertools.rst:223
523
539
msgid ""
@@ -526,20 +542,27 @@ msgid ""
526
542
"`math.comb` which computes ``n! / r! / (n - r)!`` when ``0 ≤ r ≤ n`` or zero "
527
543
"when ``r > n``."
528
544
msgstr ""
545
+ "輸出是 :func:`product` 的子序列,僅保留作為 *iterable* 子序列的條目。輸出的長"
546
+ "度由 :func:`math.comb` 給定,當 ``0 ≤ r ≤ n`` 時,計算 ``n! / r! / (n - r)!"
547
+ "``,當 ``r > n`` 時為零。"
529
548
530
549
#: ../../library/itertools.rst:228
531
550
msgid ""
532
551
"The combination tuples are emitted in lexicographic order according to the "
533
552
"order of the input *iterable*. If the input *iterable* is sorted, the output "
534
553
"tuples will be produced in sorted order."
535
554
msgstr ""
555
+ "根據輸入值 *iterable* 的順序,組合元組按字典順序輸出。如果輸入的 *iterable* "
556
+ "已經排序,則輸出的元組也將按排序的順序產生。"
536
557
537
558
#: ../../library/itertools.rst:232
538
559
msgid ""
539
560
"Elements are treated as unique based on their position, not on their value. "
540
561
"If the input elements are unique, there will be no repeated values within "
541
562
"each combination."
542
563
msgstr ""
564
+ "元素是根據它們的位置來決定其唯一性,而不是它們的值。如果輸入的元素都是獨特"
565
+ "的,則每個組合內將不會有重複的值。"
543
566
544
567
#: ../../library/itertools.rst:263
545
568
msgid ""
0 commit comments