Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 90f8598

Browse files
committed
[po] auto sync bot
1 parent 6a3ce7f commit 90f8598

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tutorial/datastructures.po

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,9 @@ msgid ""
610610
"order individual characters. Some examples of comparisons between sequences"
611611
" of the same type::"
612612
msgstr ""
613+
"序列对象可以与相同类型的其他对象比较。它们使用 *字典顺序* "
614+
"进行比较:首先比较两个序列的第一个元素,如果不同,那么这就决定了比较操作的结果。如果它们相同,就再比较每个序列的第二个元素,以此类推,直到有一个序列被耗尽。如果要比较的两个元素本身就是相同类型的序列,那么就递归进行字典顺序比较。如果两个序列中所有的元素都相等,那么我们认为这两个序列相等。如果一个序列是另一个序列的初始子序列,那么短序列就小于另一个。字典顺序对字符串来说,是使用单字符的"
615+
" Unicode 码的顺序。下面是同类型序列之间比较的例子 ::"
613616

614617
#: ../../tutorial/datastructures.rst:702
615618
msgid ""
@@ -619,6 +622,9 @@ msgid ""
619622
"equals 0.0, etc. Otherwise, rather than providing an arbitrary ordering, "
620623
"the interpreter will raise a :exc:`TypeError` exception."
621624
msgstr ""
625+
"注意对不同类型对象来说,只要待比较对象提供了合适的比较方法,就可以使用 ``<`` 和 ``>`` "
626+
"来比较。例如,混合数值类型是通过他们的数值进行比较的,所以 0 等于 0.0,等等。否则,解释器将抛出一个 :exc:`TypeError` "
627+
"异常,而不是随便给出一个结果。"
622628

623629
#: ../../tutorial/datastructures.rst:710
624630
msgid "Footnotes"
@@ -628,4 +634,4 @@ msgstr "脚注"
628634
msgid ""
629635
"Other languages may return the mutated object, which allows method chaining,"
630636
" such as ``d->insert(\"a\")->remove(\"b\")->sort();``."
631-
msgstr ""
637+
msgstr "别的语言可能会返回一个可变对象,他们允许方法连续执行,例如 ``d->insert(\"a\")->remove(\"b\")->sort();``。"

0 commit comments

Comments
 (0)