@@ -14,7 +14,7 @@ msgid ""
1414msgstr ""
1515"Project-Id-Version : Python 3.10\n "
1616"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 "
1818"PO-Revision-Date : 2021-05-27 15:39+0800\n "
1919"Last-Translator : Steven Hsu <hsuhaochun@gmail.com>\n "
2020"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -720,26 +720,28 @@ msgstr ""
720720"使用在 ``while`` 和 ``if`` 陳述式的條件句可以包含任何運算子,而不是只有比較運"
721721"算子 (comparisons) 。"
722722
723- #: ../../tutorial/datastructures.rst:662
723+ #: ../../tutorial/datastructures.rst:663
724+ #, fuzzy
724725msgid ""
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."
729731msgstr ""
730732"比較運算子 ``in`` 和 ``not in`` 檢查一個值是否存在(不存在)於一個序列中。運"
731733"算子 ``is`` 和 ``not is`` 比較兩個物件是否真的是相同的物件。所有比較運算子的"
732734"優先度都相同且都低於數值運算子。"
733735
734- #: ../../tutorial/datastructures.rst:667
736+ #: ../../tutorial/datastructures.rst:669
735737msgid ""
736738"Comparisons can be chained. For example, ``a < b == c`` tests whether ``a`` "
737739"is less than ``b`` and moreover ``b`` equals ``c``."
738740msgstr ""
739741"比較運算是可以串連在一起的。例如, ``a < b == c`` 就是在測試 ``a`` 是否小於 "
740742"``b`` 和 ``b`` 是否等於 ``c``\\ 。"
741743
742- #: ../../tutorial/datastructures.rst:670
744+ #: ../../tutorial/datastructures.rst:672
743745msgid ""
744746"Comparisons may be combined using the Boolean operators ``and`` and ``or``, "
745747"and the outcome of a comparison (or of any other Boolean expression) may be "
@@ -754,7 +756,7 @@ msgstr ""
754756"B or C`` 等同於 ``(A and (not B)) or C``\\ 。一如往常,括號可以用來表示任何想"
755757"要的組合。"
756758
757- #: ../../tutorial/datastructures.rst:677
759+ #: ../../tutorial/datastructures.rst:679
758760msgid ""
759761"The Boolean operators ``and`` and ``or`` are so-called *short-circuit* "
760762"operators: their arguments are evaluated from left to right, and evaluation "
@@ -768,7 +770,7 @@ msgstr ""
768770"``B`` 為假,則 ``A and B and C`` 的運算並不會執行到 ``C``\\ 。當運算結果被當"
769771"成一般值而非布林值時,短路運算子的回傳值為最後被求值的引數。"
770772
771- #: ../../tutorial/datastructures.rst:684
773+ #: ../../tutorial/datastructures.rst:686
772774msgid ""
773775"It is possible to assign the result of a comparison or other Boolean "
774776"expression to a variable. For example, ::"
@@ -777,7 +779,7 @@ msgstr ""
777779"\n"
778780"::"
779781
780- #: ../../tutorial/datastructures.rst:692
782+ #: ../../tutorial/datastructures.rst:694
781783msgid ""
782784"Note that in Python, unlike C, assignment inside expressions must be done "
783785"explicitly with the :ref:`walrus operator <why-can-t-i-use-an-assignment-in-"
@@ -788,11 +790,11 @@ msgstr ""
788790"算子 <why-can-t-i-use-an-assignment-in-an-expression>` ``:=``\\ 。 這樣做避免"
789791"了在 C 語言裡常見的一種問題:想要打 ``==`` 卻在運算式裡輸入 ``=``\\ 。"
790792
791- #: ../../tutorial/datastructures.rst:702
793+ #: ../../tutorial/datastructures.rst:704
792794msgid "Comparing Sequences and Other Types"
793795msgstr "序列和其他資料類型之比較"
794796
795- #: ../../tutorial/datastructures.rst:703
797+ #: ../../tutorial/datastructures.rst:705
796798msgid ""
797799"Sequence objects typically may be compared to other objects with the same "
798800"sequence type. The comparison uses *lexicographical* ordering: first the "
@@ -817,7 +819,7 @@ msgstr ""
817819"\n"
818820"::"
819821
820- #: ../../tutorial/datastructures.rst:723
822+ #: ../../tutorial/datastructures.rst:725
821823msgid ""
822824"Note that comparing objects of different types with ``<`` or ``>`` is legal "
823825"provided that the objects have appropriate comparison methods. For example, "
@@ -829,11 +831,11 @@ msgstr ""
829831"比較方法。例如,混合的數值類型是根據它們數值來做比較,所以 0 等於 0.0,等等。"
830832"否則直譯器會選擇丟出一個 :exc:`TypeError` 錯誤而不是提供一個任意的排序。"
831833
832- #: ../../tutorial/datastructures.rst:731
834+ #: ../../tutorial/datastructures.rst:733
833835msgid "Footnotes"
834836msgstr "註解"
835837
836- #: ../../tutorial/datastructures.rst:732
838+ #: ../../tutorial/datastructures.rst:734
837839msgid ""
838840"Other languages may return the mutated object, which allows method chaining, "
839841"such as ``d->insert(\" a\" )->remove(\" b\" )->sort();``."
0 commit comments