7
7
msgstr ""
8
8
"Project-Id-Version :Python 3.13\n "
9
9
"Report-Msgid-Bugs-To :\n "
10
- "POT-Creation-Date :2025-02-07 15:02+0800 \n "
10
+ "POT-Creation-Date :2025-04-16 00:15+0000 \n "
11
11
"PO-Revision-Date :2024-08-16 15:01+0800\n "
12
12
"Last-Translator :Adrian Liaw <adrianliaw2000@gmail.com>\n "
13
13
"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -488,10 +488,10 @@ msgid ""
488
488
"www.ramseysolutions.com/real-estate/amortization-schedule>`_, accumulate the "
489
489
"interest and apply payments:"
490
490
msgstr ""
491
- "*function* 引數可以被設定為 :func:`min` 以得到連續的最小值,設定 "
492
- "為 :func: `max` 以得到連續的最大值,或者設定為 :func:`operator.mul`以得到連續 "
493
- "的乘積。 也可以透過累積利息和付款來建立\\ `攤銷表 (Amortization tables) "
494
- "<https://www. ramseysolutions.com/real-estate/amortization-schedule>`_ :"
491
+ "*function* 引數可以被設定為 :func:`min` 以得到連續的最小值,設定為 :func: "
492
+ "`max` 以得到連續的最大值,或者設定為 :func:`operator.mul`以得到連續的乘積。 "
493
+ "也可以透過累積利息和付款來建立\\ `攤銷表 (Amortization tables)<https://www. "
494
+ "ramseysolutions.com/real-estate/amortization-schedule>`_ :"
495
495
496
496
#: ../../library/itertools.rst:136
497
497
msgid ""
@@ -630,9 +630,9 @@ msgstr "從輸入 *iterable* 中回傳長度為 *r* 的元素的子序列。"
630
630
#: ../../library/itertools.rst:227
631
631
msgid ""
632
632
"The output is a subsequence of :func:`product` keeping only entries that are "
633
- "subsequences of the *iterable*. The length of the output is given "
634
- "by :func: `math.comb` which computes ``n! / r! / (n - r)!`` when ``0 ≤ r ≤ "
635
- "n`` or zero when ``r > n``."
633
+ "subsequences of the *iterable*. The length of the output is givenby :func: "
634
+ "`math.comb` which computes ``n! / r! / (n - r)!`` when ``0 ≤ r ≤ n`` or zero "
635
+ "when ``r > n``."
636
636
msgstr ""
637
637
"輸出是 :func:`product` 的子序列,僅保留作為 *iterable* 子序列的條目。輸出的長"
638
638
"度由 :func:`math.comb` 給定,當 ``0 ≤ r ≤ n`` 時,長度為 ``n! / r! / (n - r)!"
@@ -758,8 +758,8 @@ msgstr ""
758
758
#: ../../library/itertools.rst:323
759
759
msgid ""
760
760
"Make an iterator that returns evenly spaced values beginning with *start*. "
761
- "Can be used with :func:`map` to generate consecutive data points or "
762
- "with : func:`zip` to add sequence numbers. Roughly equivalent to::"
761
+ "Can be used with :func:`map` to generate consecutive data points orwith : "
762
+ "func:`zip` to add sequence numbers. Roughly equivalent to::"
763
763
msgstr ""
764
764
"建立一個疊代器,回傳從 *start* 開始的等差的值。可以與 :func:`map` 一起使用來"
765
765
"產生連續的資料點,或與 :func:`zip` 一起使用來增加序列號。大致等價於: ::"
@@ -939,9 +939,9 @@ msgstr ""
939
939
#: ../../library/itertools.rst:420
940
940
msgid ""
941
941
"The returned group is itself an iterator that shares the underlying iterable "
942
- "with :func:`groupby`. Because the source is shared, when "
943
- "the :func: `groupby` object is advanced, the previous group is no longer "
944
- "visible. So, if that data is needed later, it should be stored as a list::"
942
+ "with :func:`groupby`. Because the source is shared, whenthe :func: "
943
+ "`groupby` object is advanced, the previous group is no longer visible. So, "
944
+ "if that data is needed later, it should be stored as a list::"
945
945
msgstr ""
946
946
"回傳的群組本身是一個與 :func:`groupby` 共享底層可疊代物件的疊代器。由於來源是"
947
947
"共享的,當 :func:`groupby` 物件前進時,前一個群組將不再可見。因此,如果之後需"
@@ -1146,11 +1146,11 @@ msgstr ""
1146
1146
1147
1147
#: ../../library/itertools.rst:536
1148
1148
msgid ""
1149
- "Return successive *r* length `permutations of elements <https://"
1150
- "www. britannica.com/science/permutation>`_ from the *iterable*."
1149
+ "Return successive *r* length `permutations of elements <https://www. "
1150
+ "britannica.com/science/permutation>`_ from the *iterable*."
1151
1151
msgstr ""
1152
- "回傳 *iterable* 中連續且長度為 *r* 的\\ `元素排列 <https://"
1153
- "www.britannica. com/science/permutation>`_ 。"
1152
+ "回傳 *iterable* 中連續且長度為 *r* 的\\ `元素排列 <https://www.britannica. "
1153
+ "com/science/permutation>`_ 。"
1154
1154
1155
1155
#: ../../library/itertools.rst:539
1156
1156
msgid ""
@@ -1163,13 +1163,13 @@ msgstr ""
1163
1163
#: ../../library/itertools.rst:543
1164
1164
msgid ""
1165
1165
"The output is a subsequence of :func:`product` where entries with repeated "
1166
- "elements have been filtered out. The length of the output is given "
1167
- "by :func: `math.perm` which computes ``n! / (n - r)!`` when ``0 ≤ r ≤ n`` or "
1168
- "zero when ``r > n``."
1166
+ "elements have been filtered out. The length of the output is givenby :func: "
1167
+ "`math.perm` which computes ``n! / (n - r)!`` when ``0 ≤ r ≤ n`` or zero when "
1168
+ "``r > n``."
1169
1169
msgstr ""
1170
- "輸出是 :func:`product` 的子序列,其中重複元素的條目已被濾除。輸出的長度 "
1171
- "由 : func:`math.perm` 給定,當 ``0 ≤ r ≤ n`` 時,長度為 ``n! / (n - r)!``,當 "
1172
- "``r > n`` 時為零。"
1170
+ "輸出是 :func:`product` 的子序列,其中重複元素的條目已被濾除。輸出的長度由 : "
1171
+ "func:`math.perm` 給定,當 ``0 ≤ r ≤ n`` 時,長度為 ``n! / (n - r)!``,當 ``r "
1172
+ "> n`` 時為零。"
1173
1173
1174
1174
#: ../../library/itertools.rst:548
1175
1175
msgid ""
@@ -1432,15 +1432,14 @@ msgid ""
1432
1432
"the input iterator and there is no way to access it. This could be an issue "
1433
1433
"if an application wants to further consume the input iterator after "
1434
1434
"*takewhile* has been run to exhaustion. To work around this problem, "
1435
- "consider using `more-itertools before_and_after() <https://more-"
1436
- "itertools.readthedocs.io/en/stable/"
1437
- "api.html#more_itertools.before_and_after>`_ instead."
1435
+ "consider using `more-itertools before_and_after() <https://more-itertools."
1436
+ "readthedocs.io/en/stable/api.html#more_itertools.before_and_after>`_ instead."
1438
1437
msgstr ""
1439
1438
"注意,第一個不符合條件判斷的元素將從輸入疊代器中被消耗,且無法再存取它。如果"
1440
1439
"應用程式希望在 *takewhile* 耗盡後進一步消耗輸入疊代器,這可能會是個問題。為了"
1441
1440
"解決這個問題,可以考慮使用 `more-itertools 中的 before_and_after() <https://"
1442
- "more-itertools.readthedocs.io/en/stable/"
1443
- "api.html#more_itertools. before_and_after>`_ 作為替代。"
1441
+ "more-itertools.readthedocs.io/en/stable/api.html#more_itertools. "
1442
+ "before_and_after>`_ 作為替代。"
1444
1443
1445
1444
#: ../../library/itertools.rst:691
1446
1445
msgid "Return *n* independent iterators from a single iterable."
@@ -1486,9 +1485,9 @@ msgstr ""
1486
1485
msgid ""
1487
1486
"When the input *iterable* is already a tee iterator object, all members of "
1488
1487
"the return tuple are constructed as if they had been produced by the "
1489
- "upstream :func:`tee` call. This\" flattening step\" allows "
1490
- "nested :func: `tee` calls to share the same underlying data chain and to have "
1491
- "a single update step rather than a chain of calls."
1488
+ "upstream :func:`tee` call. This\" flattening step\" allowsnested :func: "
1489
+ "`tee` calls to share the same underlying data chain and to have a single "
1490
+ "update step rather than a chain of calls."
1492
1491
msgstr ""
1493
1492
1494
1493
#: ../../library/itertools.rst:734
@@ -1522,19 +1521,19 @@ msgid ""
1522
1521
"even if the original *iterable* is threadsafe."
1523
1522
msgstr ""
1524
1523
"``tee`` 疊代器不是執行緒安全 (threadsafe) 的。當同時使用由同一個 :func:`tee` "
1525
- "呼叫所回傳的疊代器時,即使原始的 *iterable* 是執行緒安全的,也可能引 "
1526
- "發 :exc: `RuntimeError`。"
1524
+ "呼叫所回傳的疊代器時,即使原始的 *iterable* 是執行緒安全的,也可能引發 :exc: "
1525
+ "`RuntimeError`。"
1527
1526
1528
1527
#: ../../library/itertools.rst:758
1529
1528
msgid ""
1530
1529
"This itertool may require significant auxiliary storage (depending on how "
1531
1530
"much temporary data needs to be stored). In general, if one iterator uses "
1532
- "most or all of the data before another iterator starts, it is faster to "
1533
- "use : func:`list` instead of :func:`tee`."
1531
+ "most or all of the data before another iterator starts, it is faster touse : "
1532
+ "func:`list` instead of :func:`tee`."
1534
1533
msgstr ""
1535
1534
"此 itertool 可能需要大量的輔助儲存空間(取決於需要儲存多少臨時資料)。通常如"
1536
- "果一個疊代器在另一個疊代器開始之前使用了大部分或全部的資料,使 "
1537
- "用 :func: `list` 會比 :func:`tee` 更快。"
1535
+ "果一個疊代器在另一個疊代器開始之前使用了大部分或全部的資料,使用 :func: "
1536
+ "`list` 會比 :func:`tee` 更快。"
1538
1537
1539
1538
#: ../../library/itertools.rst:766
1540
1539
msgid "Make an iterator that aggregates elements from each of the *iterables*."
@@ -1600,9 +1599,9 @@ msgstr ""
1600
1599
1601
1600
#: ../../library/itertools.rst:798
1602
1601
msgid ""
1603
- "If one of the iterables is potentially infinite, then "
1604
- "the :func: `zip_longest` function should be wrapped with something that "
1605
- "limits the number of calls (for example :func:`islice` or :func:`takewhile`)."
1602
+ "If one of the iterables is potentially infinite, thenthe :func: "
1603
+ "`zip_longest` function should be wrapped with something that limits the "
1604
+ "number of calls (for example :func:`islice` or :func:`takewhile`)."
1606
1605
msgstr ""
1607
1606
"如果其中一個 iterables 可能是無限的,那麼應該用別的可以限制呼叫次數的方法來包"
1608
1607
"裝 :func:`zip_longest` 函式(例如 :func:`islice` 或 :func:`takewhile`)。"
@@ -1625,16 +1624,16 @@ msgid ""
1625
1624
"``chain.from_iterable`` is related to the concept of flattening. The "
1626
1625
"recipes also give ideas about ways that the tools can be combined — for "
1627
1626
"example, how ``starmap()`` and ``repeat()`` can work together. The recipes "
1628
- "also show patterns for using itertools with the :mod:`operator` "
1629
- "and :mod: `collections` modules as well as with the built-in itertools such "
1630
- "as ``map()``, ``filter()``, ``reversed()``, and ``enumerate()``."
1627
+ "also show patterns for using itertools with the :mod:`operator`and :mod: "
1628
+ "`collections` modules as well as with the built-in itertools such as "
1629
+ "``map()``, ``filter()``, ``reversed()``, and ``enumerate()``."
1631
1630
msgstr ""
1632
1631
"itertools 應用技巧的主要目的是教學。這些應用技巧展示了對單個工具進行思考的各"
1633
1632
"種方式 —— 例如,``chain.from_iterable`` 與攤平 (flattening) 的概念相關。這些"
1634
1633
"應用技巧還提供了組合使用工具的想法 —— 例如,``starmap()`` 和 ``repeat()`` 如"
1635
- "何一起工作。另外還展示了將 itertools 與 :mod:`operator` "
1636
- "和 :mod: `collections` 模組一同使用以及與內建 itertools(如 ``map()``、"
1637
- "``filter()``、`` reversed()`` 和 ``enumerate()``)一同使用的模式。"
1634
+ "何一起工作。另外還展示了將 itertools 與 :mod:`operator`和 :mod: "
1635
+ "`collections` 模組一同使用以及與內建 itertools(如 ``map()``、``filter ()``、"
1636
+ "``reversed()`` 和 ``enumerate()``)一同使用的模式。"
1638
1637
1639
1638
#: ../../library/itertools.rst:820
1640
1639
msgid ""
@@ -1653,8 +1652,8 @@ msgid ""
1653
1652
"Substantially all of these recipes and many, many others can be installed "
1654
1653
"from the :pypi:`more-itertools` project found on the Python Package Index::"
1655
1654
msgstr ""
1656
- "幾乎所有這些應用技巧以及許多其他應用技巧都可以從 Python Package Index上 "
1657
- "的 : pypi:`more-itertools` 專案中安裝: ::"
1655
+ "幾乎所有這些應用技巧以及許多其他應用技巧都可以從 Python Package Index上的 : "
1656
+ "pypi:`more-itertools` 專案中安裝: ::"
1658
1657
1659
1658
#: ../../library/itertools.rst:829
1660
1659
msgid "python -m pip install more-itertools"
@@ -1675,8 +1674,8 @@ msgstr ""
1675
1674
"可疊代物件一次性引入記憶體,能保持優異的記憶體性能。以\\ `函式風格 "
1676
1675
"(functional style) <https://www.cs.kent.ac.uk/people/staff/dat/miranda/"
1677
1676
"whyfp90.pdf>`_ 將工具連接在一起,能將程式碼的數量維持在較少的情況。透過優先使"
1678
- "用「向量化 (vectorized)」的構建塊而不是使用會造成直譯器負擔的 for 迴圈和"
1679
- "\\ : term:`產生器 <generator>`,則能保持高速度。"
1677
+ "用「向量化 (vectorized)」的構建塊而不是使用會造成直譯器負擔的 for 迴圈和\\ : "
1678
+ "term:`產生器 <generator>`,則能保持高速度。"
1680
1679
1681
1680
#: ../../library/itertools.rst:839
1682
1681
msgid ""
@@ -1977,8 +1976,8 @@ msgid ""
1977
1976
"\n"
1978
1977
"def multinomial(*counts):\n"
1979
1978
"\" Number of distinct arrangements of a multiset.\" \n"
1980
- " # Counter('abracadabra').values()-> 5 21 12 \n"
1981
- " # multinomial(5, 2,1 , 1,2 ) → 83160\n"
1979
+ " # Counter('abracadabra').values()→ 5 22 11 \n"
1980
+ " # multinomial(5, 2,2 , 1,1 ) → 83160\n"
1982
1981
" return prod(map(comb, accumulate(counts), counts))"
1983
1982
msgstr ""
1984
1983