7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.12\n "
9
9
"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 "
11
11
"PO-Revision-Date : 2018-05-23 16:04+0000\n "
12
12
"
Last-Translator :
Adrian Liaw <[email protected] >\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -445,8 +445,8 @@ msgstr ""
445
445
446
446
#: ../../library/itertools.rst:118 ../../library/itertools.rst:191
447
447
#: ../../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
450
450
msgid "Roughly equivalent to::"
451
451
msgstr "大致等價於: ::"
452
452
@@ -668,128 +668,128 @@ msgid ""
668
668
"report may list a name field on every third line)."
669
669
msgstr ""
670
670
671
- #: ../../library/itertools.rst:521
671
+ #: ../../library/itertools.rst:514
672
672
msgid "Return successive overlapping pairs taken from the input *iterable*."
673
673
msgstr ""
674
674
675
- #: ../../library/itertools.rst:523
675
+ #: ../../library/itertools.rst:516
676
676
msgid ""
677
677
"The number of 2-tuples in the output iterator will be one fewer than the "
678
678
"number of inputs. It will be empty if the input iterable has fewer than two "
679
679
"values."
680
680
msgstr ""
681
681
682
- #: ../../library/itertools.rst:542
682
+ #: ../../library/itertools.rst:535
683
683
msgid ""
684
684
"Return successive *r* length permutations of elements in the *iterable*."
685
685
msgstr ""
686
686
687
- #: ../../library/itertools.rst:544
687
+ #: ../../library/itertools.rst:537
688
688
msgid ""
689
689
"If *r* is not specified or is ``None``, then *r* defaults to the length of "
690
690
"the *iterable* and all possible full-length permutations are generated."
691
691
msgstr ""
692
692
693
- #: ../../library/itertools.rst:548
693
+ #: ../../library/itertools.rst:541
694
694
msgid ""
695
695
"The permutation tuples are emitted in lexicographic order according to the "
696
696
"order of the input *iterable*. So, if the input *iterable* is sorted, the "
697
697
"output tuples will be produced in sorted order."
698
698
msgstr ""
699
699
700
- #: ../../library/itertools.rst:552
700
+ #: ../../library/itertools.rst:545
701
701
msgid ""
702
702
"Elements are treated as unique based on their position, not on their value. "
703
703
"So if the input elements are unique, there will be no repeated values within "
704
704
"a permutation."
705
705
msgstr ""
706
706
707
- #: ../../library/itertools.rst:583
707
+ #: ../../library/itertools.rst:576
708
708
msgid ""
709
709
"The code for :func:`permutations` can be also expressed as a subsequence of :"
710
710
"func:`product`, filtered to exclude entries with repeated elements (those "
711
711
"from the same position in the input pool)::"
712
712
msgstr ""
713
713
714
- #: ../../library/itertools.rst:595
714
+ #: ../../library/itertools.rst:588
715
715
msgid ""
716
716
"The number of items returned is ``n! / (n-r)!`` when ``0 <= r <= n`` or zero "
717
717
"when ``r > n``."
718
718
msgstr ""
719
719
720
- #: ../../library/itertools.rst:600
720
+ #: ../../library/itertools.rst:593
721
721
msgid "Cartesian product of input iterables."
722
722
msgstr ""
723
723
724
- #: ../../library/itertools.rst:602
724
+ #: ../../library/itertools.rst:595
725
725
msgid ""
726
726
"Roughly equivalent to nested for-loops in a generator expression. For "
727
727
"example, ``product(A, B)`` returns the same as ``((x,y) for x in A for y in "
728
728
"B)``."
729
729
msgstr ""
730
730
731
- #: ../../library/itertools.rst:605
731
+ #: ../../library/itertools.rst:598
732
732
msgid ""
733
733
"The nested loops cycle like an odometer with the rightmost element advancing "
734
734
"on every iteration. This pattern creates a lexicographic ordering so that "
735
735
"if the input's iterables are sorted, the product tuples are emitted in "
736
736
"sorted order."
737
737
msgstr ""
738
738
739
- #: ../../library/itertools.rst:610
739
+ #: ../../library/itertools.rst:603
740
740
msgid ""
741
741
"To compute the product of an iterable with itself, specify the number of "
742
742
"repetitions with the optional *repeat* keyword argument. For example, "
743
743
"``product(A, repeat=4)`` means the same as ``product(A, A, A, A)``."
744
744
msgstr ""
745
745
746
- #: ../../library/itertools.rst:614
746
+ #: ../../library/itertools.rst:607
747
747
msgid ""
748
748
"This function is roughly equivalent to the following code, except that the "
749
749
"actual implementation does not build up intermediate results in memory::"
750
750
msgstr ""
751
751
752
- #: ../../library/itertools.rst:627
752
+ #: ../../library/itertools.rst:620
753
753
msgid ""
754
754
"Before :func:`product` runs, it completely consumes the input iterables, "
755
755
"keeping pools of values in memory to generate the products. Accordingly, it "
756
756
"is only useful with finite inputs."
757
757
msgstr ""
758
758
759
- #: ../../library/itertools.rst:633
759
+ #: ../../library/itertools.rst:626
760
760
msgid ""
761
761
"Make an iterator that returns *object* over and over again. Runs "
762
762
"indefinitely unless the *times* argument is specified."
763
763
msgstr ""
764
764
765
- #: ../../library/itertools.rst:647
765
+ #: ../../library/itertools.rst:640
766
766
msgid ""
767
767
"A common use for *repeat* is to supply a stream of constant values to *map* "
768
768
"or *zip*:"
769
769
msgstr ""
770
770
771
- #: ../../library/itertools.rst:657
771
+ #: ../../library/itertools.rst:650
772
772
msgid ""
773
773
"Make an iterator that computes the function using arguments obtained from "
774
774
"the iterable. Used instead of :func:`map` when argument parameters are "
775
775
"already grouped in tuples from a single iterable (when the data has been "
776
776
"\" pre-zipped\" )."
777
777
msgstr ""
778
778
779
- #: ../../library/itertools.rst:662
779
+ #: ../../library/itertools.rst:655
780
780
msgid ""
781
781
"The difference between :func:`map` and :func:`starmap` parallels the "
782
782
"distinction between ``function(a,b)`` and ``function(*c)``. Roughly "
783
783
"equivalent to::"
784
784
msgstr ""
785
785
786
- #: ../../library/itertools.rst:674
786
+ #: ../../library/itertools.rst:667
787
787
msgid ""
788
788
"Make an iterator that returns elements from the iterable as long as the "
789
789
"predicate is true. Roughly equivalent to::"
790
790
msgstr ""
791
791
792
- #: ../../library/itertools.rst:685
792
+ #: ../../library/itertools.rst:678
793
793
msgid ""
794
794
"Note, the element that first fails the predicate condition is consumed from "
795
795
"the input iterator and there is no way to access it. This could be an issue "
@@ -799,66 +799,66 @@ msgid ""
799
799
"io/en/stable/api.html#more_itertools.before_and_after>`_ instead."
800
800
msgstr ""
801
801
802
- #: ../../library/itertools.rst:696
802
+ #: ../../library/itertools.rst:689
803
803
msgid "Return *n* independent iterators from a single iterable."
804
804
msgstr ""
805
805
806
- #: ../../library/itertools.rst:698
806
+ #: ../../library/itertools.rst:691
807
807
msgid ""
808
808
"The following Python code helps explain what *tee* does (although the actual "
809
809
"implementation is more complex and uses only a single underlying :abbr:`FIFO "
810
810
"(first-in, first-out)` queue)::"
811
811
msgstr ""
812
812
813
- #: ../../library/itertools.rst:717
813
+ #: ../../library/itertools.rst:710
814
814
msgid ""
815
815
"Once a :func:`tee` has been created, the original *iterable* should not be "
816
816
"used anywhere else; otherwise, the *iterable* could get advanced without the "
817
817
"tee objects being informed."
818
818
msgstr ""
819
819
820
- #: ../../library/itertools.rst:721
820
+ #: ../../library/itertools.rst:714
821
821
msgid ""
822
822
"``tee`` iterators are not threadsafe. A :exc:`RuntimeError` may be raised "
823
823
"when simultaneously using iterators returned by the same :func:`tee` call, "
824
824
"even if the original *iterable* is threadsafe."
825
825
msgstr ""
826
826
827
- #: ../../library/itertools.rst:725
827
+ #: ../../library/itertools.rst:718
828
828
msgid ""
829
829
"This itertool may require significant auxiliary storage (depending on how "
830
830
"much temporary data needs to be stored). In general, if one iterator uses "
831
831
"most or all of the data before another iterator starts, it is faster to use :"
832
832
"func:`list` instead of :func:`tee`."
833
833
msgstr ""
834
834
835
- #: ../../library/itertools.rst:733
835
+ #: ../../library/itertools.rst:726
836
836
msgid ""
837
837
"Make an iterator that aggregates elements from each of the iterables. If the "
838
838
"iterables are of uneven length, missing values are filled-in with "
839
839
"*fillvalue*. Iteration continues until the longest iterable is exhausted. "
840
840
"Roughly equivalent to::"
841
841
msgstr ""
842
842
843
- #: ../../library/itertools.rst:757
843
+ #: ../../library/itertools.rst:750
844
844
msgid ""
845
845
"If one of the iterables is potentially infinite, then the :func:"
846
846
"`zip_longest` function should be wrapped with something that limits the "
847
847
"number of calls (for example :func:`islice` or :func:`takewhile`). If not "
848
848
"specified, *fillvalue* defaults to ``None``."
849
849
msgstr ""
850
850
851
- #: ../../library/itertools.rst:766
851
+ #: ../../library/itertools.rst:759
852
852
msgid "Itertools Recipes"
853
853
msgstr ""
854
854
855
- #: ../../library/itertools.rst:768
855
+ #: ../../library/itertools.rst:761
856
856
msgid ""
857
857
"This section shows recipes for creating an extended toolset using the "
858
858
"existing itertools as building blocks."
859
859
msgstr ""
860
860
861
- #: ../../library/itertools.rst:771
861
+ #: ../../library/itertools.rst:764
862
862
msgid ""
863
863
"The primary purpose of the itertools recipes is educational. The recipes "
864
864
"show various ways of thinking about individual tools — for example, that "
@@ -870,21 +870,21 @@ msgid ""
870
870
"``map()``, ``filter()``, ``reversed()``, and ``enumerate()``."
871
871
msgstr ""
872
872
873
- #: ../../library/itertools.rst:780
873
+ #: ../../library/itertools.rst:773
874
874
msgid ""
875
875
"A secondary purpose of the recipes is to serve as an incubator. The "
876
876
"``accumulate()``, ``compress()``, and ``pairwise()`` itertools started out "
877
877
"as recipes. Currently, the ``sliding_window()``, ``iter_index()``, and "
878
878
"``sieve()`` recipes are being tested to see whether they prove their worth."
879
879
msgstr ""
880
880
881
- #: ../../library/itertools.rst:785
881
+ #: ../../library/itertools.rst:778
882
882
msgid ""
883
883
"Substantially all of these recipes and many, many others can be installed "
884
884
"from the :pypi:`more-itertools` project found on the Python Package Index::"
885
885
msgstr ""
886
886
887
- #: ../../library/itertools.rst:791
887
+ #: ../../library/itertools.rst:784
888
888
msgid ""
889
889
"Many of the recipes offer the same high performance as the underlying "
890
890
"toolset. Superior memory performance is kept by processing elements one at a "
@@ -896,6 +896,6 @@ msgid ""
896
896
"overhead."
897
897
msgstr ""
898
898
899
- #: ../../library/itertools.rst:972
899
+ #: ../../library/itertools.rst:965
900
900
msgid "The following recipes have a more mathematical flavor:"
901
901
msgstr ""
0 commit comments