88msgstr ""
99"Project-Id-Version : Python 3.7\n "
1010"Report-Msgid-Bugs-To : \n "
11- "POT-Creation-Date : 2018-06-30 05:56 +0900\n "
11+ "POT-Creation-Date : 2018-10-28 09:36 +0900\n "
1212"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
1313"
Last-Translator :
Freesand Leo <[email protected] >, 2018\n "
1414"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -92,7 +92,7 @@ msgstr ""
9292msgid "Code"
9393msgstr ""
9494
95- #: ../../library/difflib.rst:68 ../../library/difflib.rst:489
95+ #: ../../library/difflib.rst:68 ../../library/difflib.rst:490
9696msgid "Meaning"
9797msgstr "意义"
9898
@@ -534,178 +534,178 @@ msgstr ""
534534
535535#: ../../library/difflib.rst:460
536536msgid ""
537- "Return list of triples describing matching subsequences. Each triple is of "
538- "the form ``(i, j, n)``, and means that ``a[i:i+n] == b[j:j+n]``. The "
539- "triples are monotonically increasing in *i* and *j*."
537+ "Return list of triples describing non-overlapping matching subsequences. "
538+ "Each triple is of the form ``(i, j, n)``, and means that ``a[i:i+n] == "
539+ "b[j:j+n]``. The triples are monotonically increasing in *i* and *j*."
540540msgstr ""
541541
542- #: ../../library/difflib.rst:464
542+ #: ../../library/difflib.rst:465
543543msgid ""
544544"The last triple is a dummy, and has the value ``(len(a), len(b), 0)``. It "
545545"is the only triple with ``n == 0``. If ``(i, j, n)`` and ``(i', j', n')`` "
546546"are adjacent triples in the list, and the second is not the last triple in "
547- "the list, then ``i+n != i'`` or ``j+n != j'``; in other words, adjacent "
547+ "the list, then ``i+n < i'`` or ``j+n < j'``; in other words, adjacent "
548548"triples always describe non-adjacent equal blocks."
549549msgstr ""
550550
551- #: ../../library/difflib.rst:481
551+ #: ../../library/difflib.rst:482
552552msgid ""
553553"Return list of 5-tuples describing how to turn *a* into *b*. Each tuple is "
554554"of the form ``(tag, i1, i2, j1, j2)``. The first tuple has ``i1 == j1 == "
555555"0``, and remaining tuples have *i1* equal to the *i2* from the preceding "
556556"tuple, and, likewise, *j1* equal to the previous *j2*."
557557msgstr ""
558558
559- #: ../../library/difflib.rst:486
559+ #: ../../library/difflib.rst:487
560560msgid "The *tag* values are strings, with these meanings:"
561561msgstr ""
562562
563- #: ../../library/difflib.rst:489
563+ #: ../../library/difflib.rst:490
564564msgid "Value"
565565msgstr ""
566566
567- #: ../../library/difflib.rst:491
567+ #: ../../library/difflib.rst:492
568568msgid "``'replace'``"
569569msgstr ""
570570
571- #: ../../library/difflib.rst:491
571+ #: ../../library/difflib.rst:492
572572msgid "``a[i1:i2]`` should be replaced by ``b[j1:j2]``."
573573msgstr ""
574574
575- #: ../../library/difflib.rst:494
575+ #: ../../library/difflib.rst:495
576576msgid "``'delete'``"
577577msgstr ""
578578
579- #: ../../library/difflib.rst:494
579+ #: ../../library/difflib.rst:495
580580msgid "``a[i1:i2]`` should be deleted. Note that ``j1 == j2`` in this case."
581581msgstr ""
582582
583- #: ../../library/difflib.rst:497
583+ #: ../../library/difflib.rst:498
584584msgid "``'insert'``"
585585msgstr ""
586586
587- #: ../../library/difflib.rst:497
587+ #: ../../library/difflib.rst:498
588588msgid ""
589589"``b[j1:j2]`` should be inserted at ``a[i1:i1]``. Note that ``i1 == i2`` in "
590590"this case."
591591msgstr ""
592592
593- #: ../../library/difflib.rst:501
593+ #: ../../library/difflib.rst:502
594594msgid "``'equal'``"
595595msgstr ""
596596
597- #: ../../library/difflib.rst:501
597+ #: ../../library/difflib.rst:502
598598msgid "``a[i1:i2] == b[j1:j2]`` (the sub-sequences are equal)."
599599msgstr ""
600600
601- #: ../../library/difflib.rst:505
601+ #: ../../library/difflib.rst:506
602602msgid "For example::"
603603msgstr "例如::"
604604
605- #: ../../library/difflib.rst:522
605+ #: ../../library/difflib.rst:523
606606msgid "Return a :term:`generator` of groups with up to *n* lines of context."
607607msgstr ""
608608
609- #: ../../library/difflib.rst:524
609+ #: ../../library/difflib.rst:525
610610msgid ""
611611"Starting with the groups returned by :meth:`get_opcodes`, this method splits"
612612" out smaller change clusters and eliminates intervening ranges which have no"
613613" changes."
614614msgstr ""
615615
616- #: ../../library/difflib.rst:528
616+ #: ../../library/difflib.rst:529
617617msgid "The groups are returned in the same format as :meth:`get_opcodes`."
618618msgstr ""
619619
620- #: ../../library/difflib.rst:533
620+ #: ../../library/difflib.rst:534
621621msgid ""
622622"Return a measure of the sequences' similarity as a float in the range [0, "
623623"1]."
624624msgstr ""
625625
626- #: ../../library/difflib.rst:536
626+ #: ../../library/difflib.rst:537
627627msgid ""
628628"Where T is the total number of elements in both sequences, and M is the "
629629"number of matches, this is 2.0\\ *M / T. Note that this is ``1.0`` if the "
630630"sequences are identical, and ``0.0`` if they have nothing in common."
631631msgstr ""
632632
633- #: ../../library/difflib.rst:540
633+ #: ../../library/difflib.rst:541
634634msgid ""
635635"This is expensive to compute if :meth:`get_matching_blocks` or "
636636":meth:`get_opcodes` hasn't already been called, in which case you may want "
637637"to try :meth:`quick_ratio` or :meth:`real_quick_ratio` first to get an upper"
638638" bound."
639639msgstr ""
640640
641- #: ../../library/difflib.rst:548
641+ #: ../../library/difflib.rst:549
642642msgid "Return an upper bound on :meth:`ratio` relatively quickly."
643643msgstr ""
644644
645- #: ../../library/difflib.rst:553
645+ #: ../../library/difflib.rst:554
646646msgid "Return an upper bound on :meth:`ratio` very quickly."
647647msgstr ""
648648
649- #: ../../library/difflib.rst:556
649+ #: ../../library/difflib.rst:557
650650msgid ""
651651"The three methods that return the ratio of matching to total characters can "
652652"give different results due to differing levels of approximation, although "
653653":meth:`quick_ratio` and :meth:`real_quick_ratio` are always at least as "
654654"large as :meth:`ratio`:"
655655msgstr ""
656656
657- #: ../../library/difflib.rst:573
657+ #: ../../library/difflib.rst:574
658658msgid "SequenceMatcher Examples"
659659msgstr ""
660660
661- #: ../../library/difflib.rst:575
661+ #: ../../library/difflib.rst:576
662662msgid "This example compares two strings, considering blanks to be \" junk\" :"
663663msgstr ""
664664
665- #: ../../library/difflib.rst:581
665+ #: ../../library/difflib.rst:582
666666msgid ""
667667":meth:`ratio` returns a float in [0, 1], measuring the similarity of the "
668668"sequences. As a rule of thumb, a :meth:`ratio` value over 0.6 means the "
669669"sequences are close matches:"
670670msgstr ""
671671
672- #: ../../library/difflib.rst:588
672+ #: ../../library/difflib.rst:589
673673msgid ""
674674"If you're only interested in where the sequences match, "
675675":meth:`get_matching_blocks` is handy:"
676676msgstr ""
677677
678- #: ../../library/difflib.rst:597
678+ #: ../../library/difflib.rst:598
679679msgid ""
680680"Note that the last tuple returned by :meth:`get_matching_blocks` is always a"
681681" dummy, ``(len(a), len(b), 0)``, and this is the only case in which the last"
682682" tuple element (number of elements matched) is ``0``."
683683msgstr ""
684684
685- #: ../../library/difflib.rst:601
685+ #: ../../library/difflib.rst:602
686686msgid ""
687687"If you want to know how to change the first sequence into the second, use "
688688":meth:`get_opcodes`:"
689689msgstr ""
690690
691- #: ../../library/difflib.rst:612
691+ #: ../../library/difflib.rst:613
692692msgid ""
693693"The :func:`get_close_matches` function in this module which shows how simple"
694694" code building on :class:`SequenceMatcher` can be used to do useful work."
695695msgstr ""
696696
697- #: ../../library/difflib.rst:616
697+ #: ../../library/difflib.rst:617
698698msgid ""
699699"`Simple version control recipe "
700700"<https://code.activestate.com/recipes/576729/>`_ for a small application "
701701"built with :class:`SequenceMatcher`."
702702msgstr ""
703703
704- #: ../../library/difflib.rst:624
704+ #: ../../library/difflib.rst:625
705705msgid "Differ Objects"
706706msgstr ""
707707
708- #: ../../library/difflib.rst:626
708+ #: ../../library/difflib.rst:627
709709msgid ""
710710"Note that :class:`Differ`\\ -generated deltas make no claim to be "
711711"**minimal** diffs. To the contrary, minimal diffs are often counter-"
@@ -715,50 +715,50 @@ msgid ""
715715"longer diff."
716716msgstr ""
717717
718- #: ../../library/difflib.rst:632
718+ #: ../../library/difflib.rst:633
719719msgid "The :class:`Differ` class has this constructor:"
720720msgstr ""
721721
722- #: ../../library/difflib.rst:637
722+ #: ../../library/difflib.rst:638
723723msgid ""
724724"Optional keyword parameters *linejunk* and *charjunk* are for filter "
725725"functions (or ``None``):"
726726msgstr ""
727727
728- #: ../../library/difflib.rst:640
728+ #: ../../library/difflib.rst:641
729729msgid ""
730730"*linejunk*: A function that accepts a single string argument, and returns "
731731"true if the string is junk. The default is ``None``, meaning that no line "
732732"is considered junk."
733733msgstr ""
734734
735- #: ../../library/difflib.rst:644
735+ #: ../../library/difflib.rst:645
736736msgid ""
737737"*charjunk*: A function that accepts a single character argument (a string of"
738738" length 1), and returns true if the character is junk. The default is "
739739"``None``, meaning that no character is considered junk."
740740msgstr ""
741741
742- #: ../../library/difflib.rst:648
742+ #: ../../library/difflib.rst:649
743743msgid ""
744744"These junk-filtering functions speed up matching to find differences and do "
745745"not cause any differing lines or characters to be ignored. Read the "
746746"description of the :meth:`~SequenceMatcher.find_longest_match` method's "
747747"*isjunk* parameter for an explanation."
748748msgstr ""
749749
750- #: ../../library/difflib.rst:654
750+ #: ../../library/difflib.rst:655
751751msgid ""
752752":class:`Differ` objects are used (deltas generated) via a single method:"
753753msgstr ""
754754
755- #: ../../library/difflib.rst:659
755+ #: ../../library/difflib.rst:660
756756msgid ""
757757"Compare two sequences of lines, and generate the delta (a sequence of "
758758"lines)."
759759msgstr ""
760760
761- #: ../../library/difflib.rst:661
761+ #: ../../library/difflib.rst:662
762762msgid ""
763763"Each sequence must contain individual single-line strings ending with "
764764"newlines. Such sequences can be obtained from the "
@@ -767,46 +767,46 @@ msgid ""
767767"as-is via the :meth:`~io.IOBase.writelines` method of a file-like object."
768768msgstr ""
769769
770- #: ../../library/difflib.rst:672
770+ #: ../../library/difflib.rst:673
771771msgid "Differ Example"
772772msgstr ""
773773
774- #: ../../library/difflib.rst:674
774+ #: ../../library/difflib.rst:675
775775msgid ""
776776"This example compares two texts. First we set up the texts, sequences of "
777777"individual single-line strings ending with newlines (such sequences can also"
778778" be obtained from the :meth:`~io.BaseIO.readlines` method of file-like "
779779"objects):"
780780msgstr ""
781781
782- #: ../../library/difflib.rst:693
782+ #: ../../library/difflib.rst:694
783783msgid "Next we instantiate a Differ object:"
784784msgstr ""
785785
786- #: ../../library/difflib.rst:697
786+ #: ../../library/difflib.rst:698
787787msgid ""
788788"Note that when instantiating a :class:`Differ` object we may pass functions "
789789"to filter out line and character \" junk.\" See the :meth:`Differ` "
790790"constructor for details."
791791msgstr ""
792792
793- #: ../../library/difflib.rst:701
793+ #: ../../library/difflib.rst:702
794794msgid "Finally, we compare the two:"
795795msgstr ""
796796
797- #: ../../library/difflib.rst:705
797+ #: ../../library/difflib.rst:706
798798msgid "``result`` is a list of strings, so let's pretty-print it:"
799799msgstr ""
800800
801- #: ../../library/difflib.rst:720
801+ #: ../../library/difflib.rst:721
802802msgid "As a single multi-line string it looks like this:"
803803msgstr ""
804804
805- #: ../../library/difflib.rst:739
805+ #: ../../library/difflib.rst:740
806806msgid "A command-line interface to difflib"
807807msgstr ""
808808
809- #: ../../library/difflib.rst:741
809+ #: ../../library/difflib.rst:742
810810msgid ""
811811"This example shows how to use difflib to create a ``diff``-like utility. It "
812812"is also contained in the Python source distribution, as "
0 commit comments