Skip to content

Commit 3ff572b

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython 11594da0
1 parent dc719e0 commit 3ff572b

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

library/itertools.po

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2024-05-04 00:03+0000\n"
10+
"POT-Creation-Date: 2024-05-06 00:03+0000\n"
1111
"PO-Revision-Date: 2018-05-23 16:04+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -445,8 +445,8 @@ msgstr ""
445445

446446
#: ../../library/itertools.rst:118 ../../library/itertools.rst:191
447447
#: ../../library/itertools.rst:242 ../../library/itertools.rst:291
448-
#: ../../library/itertools.rst:491 ../../library/itertools.rst:527
449-
#: ../../library/itertools.rst:556 ../../library/itertools.rst:636
448+
#: ../../library/itertools.rst:491 ../../library/itertools.rst:520
449+
#: ../../library/itertools.rst:549 ../../library/itertools.rst:629
450450
msgid "Roughly equivalent to::"
451451
msgstr "大致等價於: ::"
452452

@@ -668,128 +668,128 @@ msgid ""
668668
"report may list a name field on every third line)."
669669
msgstr ""
670670

671-
#: ../../library/itertools.rst:521
671+
#: ../../library/itertools.rst:514
672672
msgid "Return successive overlapping pairs taken from the input *iterable*."
673673
msgstr ""
674674

675-
#: ../../library/itertools.rst:523
675+
#: ../../library/itertools.rst:516
676676
msgid ""
677677
"The number of 2-tuples in the output iterator will be one fewer than the "
678678
"number of inputs. It will be empty if the input iterable has fewer than two "
679679
"values."
680680
msgstr ""
681681

682-
#: ../../library/itertools.rst:542
682+
#: ../../library/itertools.rst:535
683683
msgid ""
684684
"Return successive *r* length permutations of elements in the *iterable*."
685685
msgstr ""
686686

687-
#: ../../library/itertools.rst:544
687+
#: ../../library/itertools.rst:537
688688
msgid ""
689689
"If *r* is not specified or is ``None``, then *r* defaults to the length of "
690690
"the *iterable* and all possible full-length permutations are generated."
691691
msgstr ""
692692

693-
#: ../../library/itertools.rst:548
693+
#: ../../library/itertools.rst:541
694694
msgid ""
695695
"The permutation tuples are emitted in lexicographic order according to the "
696696
"order of the input *iterable*. So, if the input *iterable* is sorted, the "
697697
"output tuples will be produced in sorted order."
698698
msgstr ""
699699

700-
#: ../../library/itertools.rst:552
700+
#: ../../library/itertools.rst:545
701701
msgid ""
702702
"Elements are treated as unique based on their position, not on their value. "
703703
"So if the input elements are unique, there will be no repeated values within "
704704
"a permutation."
705705
msgstr ""
706706

707-
#: ../../library/itertools.rst:583
707+
#: ../../library/itertools.rst:576
708708
msgid ""
709709
"The code for :func:`permutations` can be also expressed as a subsequence of :"
710710
"func:`product`, filtered to exclude entries with repeated elements (those "
711711
"from the same position in the input pool)::"
712712
msgstr ""
713713

714-
#: ../../library/itertools.rst:595
714+
#: ../../library/itertools.rst:588
715715
msgid ""
716716
"The number of items returned is ``n! / (n-r)!`` when ``0 <= r <= n`` or zero "
717717
"when ``r > n``."
718718
msgstr ""
719719

720-
#: ../../library/itertools.rst:600
720+
#: ../../library/itertools.rst:593
721721
msgid "Cartesian product of input iterables."
722722
msgstr ""
723723

724-
#: ../../library/itertools.rst:602
724+
#: ../../library/itertools.rst:595
725725
msgid ""
726726
"Roughly equivalent to nested for-loops in a generator expression. For "
727727
"example, ``product(A, B)`` returns the same as ``((x,y) for x in A for y in "
728728
"B)``."
729729
msgstr ""
730730

731-
#: ../../library/itertools.rst:605
731+
#: ../../library/itertools.rst:598
732732
msgid ""
733733
"The nested loops cycle like an odometer with the rightmost element advancing "
734734
"on every iteration. This pattern creates a lexicographic ordering so that "
735735
"if the input's iterables are sorted, the product tuples are emitted in "
736736
"sorted order."
737737
msgstr ""
738738

739-
#: ../../library/itertools.rst:610
739+
#: ../../library/itertools.rst:603
740740
msgid ""
741741
"To compute the product of an iterable with itself, specify the number of "
742742
"repetitions with the optional *repeat* keyword argument. For example, "
743743
"``product(A, repeat=4)`` means the same as ``product(A, A, A, A)``."
744744
msgstr ""
745745

746-
#: ../../library/itertools.rst:614
746+
#: ../../library/itertools.rst:607
747747
msgid ""
748748
"This function is roughly equivalent to the following code, except that the "
749749
"actual implementation does not build up intermediate results in memory::"
750750
msgstr ""
751751

752-
#: ../../library/itertools.rst:627
752+
#: ../../library/itertools.rst:620
753753
msgid ""
754754
"Before :func:`product` runs, it completely consumes the input iterables, "
755755
"keeping pools of values in memory to generate the products. Accordingly, it "
756756
"is only useful with finite inputs."
757757
msgstr ""
758758

759-
#: ../../library/itertools.rst:633
759+
#: ../../library/itertools.rst:626
760760
msgid ""
761761
"Make an iterator that returns *object* over and over again. Runs "
762762
"indefinitely unless the *times* argument is specified."
763763
msgstr ""
764764

765-
#: ../../library/itertools.rst:647
765+
#: ../../library/itertools.rst:640
766766
msgid ""
767767
"A common use for *repeat* is to supply a stream of constant values to *map* "
768768
"or *zip*:"
769769
msgstr ""
770770

771-
#: ../../library/itertools.rst:657
771+
#: ../../library/itertools.rst:650
772772
msgid ""
773773
"Make an iterator that computes the function using arguments obtained from "
774774
"the iterable. Used instead of :func:`map` when argument parameters are "
775775
"already grouped in tuples from a single iterable (when the data has been "
776776
"\"pre-zipped\")."
777777
msgstr ""
778778

779-
#: ../../library/itertools.rst:662
779+
#: ../../library/itertools.rst:655
780780
msgid ""
781781
"The difference between :func:`map` and :func:`starmap` parallels the "
782782
"distinction between ``function(a,b)`` and ``function(*c)``. Roughly "
783783
"equivalent to::"
784784
msgstr ""
785785

786-
#: ../../library/itertools.rst:674
786+
#: ../../library/itertools.rst:667
787787
msgid ""
788788
"Make an iterator that returns elements from the iterable as long as the "
789789
"predicate is true. Roughly equivalent to::"
790790
msgstr ""
791791

792-
#: ../../library/itertools.rst:685
792+
#: ../../library/itertools.rst:678
793793
msgid ""
794794
"Note, the element that first fails the predicate condition is consumed from "
795795
"the input iterator and there is no way to access it. This could be an issue "
@@ -799,66 +799,66 @@ msgid ""
799799
"io/en/stable/api.html#more_itertools.before_and_after>`_ instead."
800800
msgstr ""
801801

802-
#: ../../library/itertools.rst:696
802+
#: ../../library/itertools.rst:689
803803
msgid "Return *n* independent iterators from a single iterable."
804804
msgstr ""
805805

806-
#: ../../library/itertools.rst:698
806+
#: ../../library/itertools.rst:691
807807
msgid ""
808808
"The following Python code helps explain what *tee* does (although the actual "
809809
"implementation is more complex and uses only a single underlying :abbr:`FIFO "
810810
"(first-in, first-out)` queue)::"
811811
msgstr ""
812812

813-
#: ../../library/itertools.rst:717
813+
#: ../../library/itertools.rst:710
814814
msgid ""
815815
"Once a :func:`tee` has been created, the original *iterable* should not be "
816816
"used anywhere else; otherwise, the *iterable* could get advanced without the "
817817
"tee objects being informed."
818818
msgstr ""
819819

820-
#: ../../library/itertools.rst:721
820+
#: ../../library/itertools.rst:714
821821
msgid ""
822822
"``tee`` iterators are not threadsafe. A :exc:`RuntimeError` may be raised "
823823
"when simultaneously using iterators returned by the same :func:`tee` call, "
824824
"even if the original *iterable* is threadsafe."
825825
msgstr ""
826826

827-
#: ../../library/itertools.rst:725
827+
#: ../../library/itertools.rst:718
828828
msgid ""
829829
"This itertool may require significant auxiliary storage (depending on how "
830830
"much temporary data needs to be stored). In general, if one iterator uses "
831831
"most or all of the data before another iterator starts, it is faster to use :"
832832
"func:`list` instead of :func:`tee`."
833833
msgstr ""
834834

835-
#: ../../library/itertools.rst:733
835+
#: ../../library/itertools.rst:726
836836
msgid ""
837837
"Make an iterator that aggregates elements from each of the iterables. If the "
838838
"iterables are of uneven length, missing values are filled-in with "
839839
"*fillvalue*. Iteration continues until the longest iterable is exhausted. "
840840
"Roughly equivalent to::"
841841
msgstr ""
842842

843-
#: ../../library/itertools.rst:757
843+
#: ../../library/itertools.rst:750
844844
msgid ""
845845
"If one of the iterables is potentially infinite, then the :func:"
846846
"`zip_longest` function should be wrapped with something that limits the "
847847
"number of calls (for example :func:`islice` or :func:`takewhile`). If not "
848848
"specified, *fillvalue* defaults to ``None``."
849849
msgstr ""
850850

851-
#: ../../library/itertools.rst:766
851+
#: ../../library/itertools.rst:759
852852
msgid "Itertools Recipes"
853853
msgstr ""
854854

855-
#: ../../library/itertools.rst:768
855+
#: ../../library/itertools.rst:761
856856
msgid ""
857857
"This section shows recipes for creating an extended toolset using the "
858858
"existing itertools as building blocks."
859859
msgstr ""
860860

861-
#: ../../library/itertools.rst:771
861+
#: ../../library/itertools.rst:764
862862
msgid ""
863863
"The primary purpose of the itertools recipes is educational. The recipes "
864864
"show various ways of thinking about individual tools — for example, that "
@@ -870,21 +870,21 @@ msgid ""
870870
"``map()``, ``filter()``, ``reversed()``, and ``enumerate()``."
871871
msgstr ""
872872

873-
#: ../../library/itertools.rst:780
873+
#: ../../library/itertools.rst:773
874874
msgid ""
875875
"A secondary purpose of the recipes is to serve as an incubator. The "
876876
"``accumulate()``, ``compress()``, and ``pairwise()`` itertools started out "
877877
"as recipes. Currently, the ``sliding_window()``, ``iter_index()``, and "
878878
"``sieve()`` recipes are being tested to see whether they prove their worth."
879879
msgstr ""
880880

881-
#: ../../library/itertools.rst:785
881+
#: ../../library/itertools.rst:778
882882
msgid ""
883883
"Substantially all of these recipes and many, many others can be installed "
884884
"from the :pypi:`more-itertools` project found on the Python Package Index::"
885885
msgstr ""
886886

887-
#: ../../library/itertools.rst:791
887+
#: ../../library/itertools.rst:784
888888
msgid ""
889889
"Many of the recipes offer the same high performance as the underlying "
890890
"toolset. Superior memory performance is kept by processing elements one at a "
@@ -896,6 +896,6 @@ msgid ""
896896
"overhead."
897897
msgstr ""
898898

899-
#: ../../library/itertools.rst:972
899+
#: ../../library/itertools.rst:965
900900
msgid "The following recipes have a more mathematical flavor:"
901901
msgstr ""

0 commit comments

Comments
 (0)