@@ -14,7 +14,7 @@ msgid ""
14
14
msgstr ""
15
15
"Project-Id-Version :Python 3.10\n "
16
16
"Report-Msgid-Bugs-To :\n "
17
- "POT-Creation-Date :2021-05-21 15:41+0800 \n "
17
+ "POT-Creation-Date :2022-01-11 00:10+0000 \n "
18
18
"PO-Revision-Date :2021-05-27 15:39+0800\n "
19
19
"Last-Translator :Steven Hsu <hsuhaochun@gmail.com>\n "
20
20
"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -720,26 +720,28 @@ msgstr ""
720
720
"使用在 ``while`` 和 ``if`` 陳述式的條件句可以包含任何運算子,而不是只有比較運"
721
721
"算子 (comparisons) 。"
722
722
723
- #: ../../tutorial/datastructures.rst:662
723
+ #: ../../tutorial/datastructures.rst:663
724
+ #, fuzzy
724
725
msgid ""
725
- "The comparison operators ``in`` and ``not in`` check whether a value occurs "
726
- "(does not occur) in a sequence. The operators ``is`` and ``is not`` compare "
727
- "whether two objects are really the same object. All comparison operators "
728
- "have the same priority, which is lower than that of all numerical operators."
726
+ "The comparison operators ``in`` and ``not in`` are membership tests that "
727
+ "determine whether a value is in (or not in) a container. The operators "
728
+ "``is`` and ``is not`` compare whether two objects are really the same "
729
+ "object. All comparison operators have the same priority, which is lower "
730
+ "than that of all numerical operators."
729
731
msgstr ""
730
732
"比較運算子 ``in`` 和 ``not in`` 檢查一個值是否存在(不存在)於一個序列中。運"
731
733
"算子 ``is`` 和 ``not is`` 比較兩個物件是否真的是相同的物件。所有比較運算子的"
732
734
"優先度都相同且都低於數值運算子。"
733
735
734
- #: ../../tutorial/datastructures.rst:667
736
+ #: ../../tutorial/datastructures.rst:669
735
737
msgid ""
736
738
"Comparisons can be chained. For example, ``a < b == c`` tests whether ``a`` "
737
739
"is less than ``b`` and moreover ``b`` equals ``c``."
738
740
msgstr ""
739
741
"比較運算是可以串連在一起的。例如, ``a < b == c`` 就是在測試 ``a`` 是否小於 "
740
742
"``b`` 和 ``b`` 是否等於 ``c``\\ 。"
741
743
742
- #: ../../tutorial/datastructures.rst:670
744
+ #: ../../tutorial/datastructures.rst:672
743
745
msgid ""
744
746
"Comparisons may be combined using the Boolean operators ``and`` and ``or``, "
745
747
"and the outcome of a comparison (or of any other Boolean expression) may be "
@@ -754,7 +756,7 @@ msgstr ""
754
756
"B or C`` 等同於 ``(A and (not B)) or C``\\ 。一如往常,括號可以用來表示任何想"
755
757
"要的組合。"
756
758
757
- #: ../../tutorial/datastructures.rst:677
759
+ #: ../../tutorial/datastructures.rst:679
758
760
msgid ""
759
761
"The Boolean operators ``and`` and ``or`` are so-called *short-circuit* "
760
762
"operators: their arguments are evaluated from left to right, and evaluation "
@@ -768,7 +770,7 @@ msgstr ""
768
770
"``B`` 為假,則 ``A and B and C`` 的運算並不會執行到 ``C``\\ 。當運算結果被當"
769
771
"成一般值而非布林值時,短路運算子的回傳值為最後被求值的引數。"
770
772
771
- #: ../../tutorial/datastructures.rst:684
773
+ #: ../../tutorial/datastructures.rst:686
772
774
msgid ""
773
775
"It is possible to assign the result of a comparison or other Boolean "
774
776
"expression to a variable. For example, ::"
@@ -777,7 +779,7 @@ msgstr ""
777
779
"\n"
778
780
"::"
779
781
780
- #: ../../tutorial/datastructures.rst:692
782
+ #: ../../tutorial/datastructures.rst:694
781
783
msgid ""
782
784
"Note that in Python, unlike C, assignment inside expressions must be done "
783
785
"explicitly with the :ref:`walrus operator <why-can-t-i-use-an-assignment-in-"
@@ -788,11 +790,11 @@ msgstr ""
788
790
"算子 <why-can-t-i-use-an-assignment-in-an-expression>` ``:=``\\ 。 這樣做避免"
789
791
"了在 C 語言裡常見的一種問題:想要打 ``==`` 卻在運算式裡輸入 ``=``\\ 。"
790
792
791
- #: ../../tutorial/datastructures.rst:702
793
+ #: ../../tutorial/datastructures.rst:704
792
794
msgid "Comparing Sequences and Other Types"
793
795
msgstr "序列和其他資料類型之比較"
794
796
795
- #: ../../tutorial/datastructures.rst:703
797
+ #: ../../tutorial/datastructures.rst:705
796
798
msgid ""
797
799
"Sequence objects typically may be compared to other objects with the same "
798
800
"sequence type. The comparison uses *lexicographical* ordering: first the "
@@ -817,7 +819,7 @@ msgstr ""
817
819
"\n"
818
820
"::"
819
821
820
- #: ../../tutorial/datastructures.rst:723
822
+ #: ../../tutorial/datastructures.rst:725
821
823
msgid ""
822
824
"Note that comparing objects of different types with ``<`` or ``>`` is legal "
823
825
"provided that the objects have appropriate comparison methods. For example, "
@@ -829,11 +831,11 @@ msgstr ""
829
831
"比較方法。例如,混合的數值類型是根據它們數值來做比較,所以 0 等於 0.0,等等。"
830
832
"否則直譯器會選擇丟出一個 :exc:`TypeError` 錯誤而不是提供一個任意的排序。"
831
833
832
- #: ../../tutorial/datastructures.rst:731
834
+ #: ../../tutorial/datastructures.rst:733
833
835
msgid "Footnotes"
834
836
msgstr "註解"
835
837
836
- #: ../../tutorial/datastructures.rst:732
838
+ #: ../../tutorial/datastructures.rst:734
837
839
msgid ""
838
840
"Other languages may return the mutated object, which allows method chaining, "
839
841
"such as ``d->insert(\" a\" )->remove(\" b\" )->sort();``."