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

Skip to content

Commit 6a3ce7f

Browse files
committed
[po] auto sync bot
1 parent 511fa9c commit 6a3ce7f

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

tutorial/datastructures.po

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,12 +540,14 @@ msgid ""
540540
"mutable objects like lists. All comparison operators have the same "
541541
"priority, which is lower than that of all numerical operators."
542542
msgstr ""
543+
"比较操作符 ``in`` 和 ``not in`` 校验一个至是否在(或不在)一个序列里。操作符 ``is`` 和 ``is not`` "
544+
"比较两个对象是不是同一个对象,这只跟像列表这样的可变对象有关。所有的比较操作符都有相同的优先级,且这个优先级比数值运算符低。"
543545

544546
#: ../../tutorial/datastructures.rst:646
545547
msgid ""
546548
"Comparisons can be chained. For example, ``a < b == c`` tests whether ``a``"
547549
" is less than ``b`` and moreover ``b`` equals ``c``."
548-
msgstr ""
550+
msgstr "比较操作可以传递。例如 ``a < b == c``校验是否 ``a`` 小于 ``b`` 并且 ``b`` 等于 ``c``。"
549551

550552
#: ../../tutorial/datastructures.rst:649
551553
msgid ""
@@ -556,6 +558,9 @@ msgid ""
556558
"lowest, so that ``A and not B or C`` is equivalent to ``(A and (not B)) or "
557559
"C``. As always, parentheses can be used to express the desired composition."
558560
msgstr ""
561+
"比较操作可以通过逻辑运算符 ``and`` 和 ``or`` 来组合,并且比较操作(或其他任何逻辑运算)的结果都可以用 ``not`` "
562+
"来取反义。这些操作符的优先级又低于比较操作符。在它们之中,``not`` 优先级最高, ``or``优先级最低,因此 ``A and not B or "
563+
"C`` 等价于 ``(A and (not B)) or C``。一如既往,你也可以在这种式子里使用圆括号。"
559564

560565
#: ../../tutorial/datastructures.rst:656
561566
msgid ""
@@ -566,12 +571,15 @@ msgid ""
566571
"expression ``C``. When used as a general value and not as a Boolean, the "
567572
"return value of a short-circuit operator is the last evaluated argument."
568573
msgstr ""
574+
"逻辑运算符 ``and`` 和 ``or`` 也被成为 *短路* 运算符:它们的参数从左至右解析,一旦可以确定结果解析就会停止。例如,如果 ``A`` "
575+
"和 ``C`` 为真而 ``B`` 为假,那么 ``A and B and C `` 不会解析 "
576+
"``C``。当作用于普通值而非逻辑值时,短路操作符的返回值通常是最后一个变量。"
569577

570578
#: ../../tutorial/datastructures.rst:663
571579
msgid ""
572580
"It is possible to assign the result of a comparison or other Boolean "
573581
"expression to a variable. For example, ::"
574-
msgstr ""
582+
msgstr "也可以把比较操作或者逻辑表达式的结果赋值给一个变量,例如 ::"
575583

576584
#: ../../tutorial/datastructures.rst:671
577585
msgid ""
@@ -580,6 +588,8 @@ msgid ""
580588
"problems encountered in C programs: typing ``=`` in an expression when "
581589
"``==`` was intended."
582590
msgstr ""
591+
"注意 Python 与 C 不同,赋值操作不能发生在表达式内部。C程序员可能会对此抱怨,但它避免了一类C程序中常见的错误:想在表达式中写 ``==`` "
592+
"时却写成了 ``=``。"
583593

584594
#: ../../tutorial/datastructures.rst:680
585595
msgid "Comparing Sequences and Other Types"

0 commit comments

Comments
 (0)