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

Skip to content

Commit c3592fe

Browse files
[po] auto sync
1 parent 79f23ac commit c3592fe

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

library/ast.po

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -727,17 +727,22 @@ msgid ""
727727
":class:`Name`, :class:`Tuple` or :class:`List` for the ``as foo`` part, or "
728728
"``None`` if that isn't used."
729729
msgstr ""
730+
"一个 ``with`` 代码块中单独的上下文管理器。 ``context_expr`` 为上下文管理器,通常为一个 :class:`Call` 节点。 "
731+
"``optional_vars`` 为一个针对 ``as foo`` 部分的 :class:`Name`, :class:`Tuple` 或 "
732+
":class:`List`,或者如果未使用别名则为 ``None``。"
730733

731734
#: ../../library/ast.rst:1249
732735
msgid "Pattern matching"
733-
msgstr ""
736+
msgstr "模式匹配"
734737

735738
#: ../../library/ast.rst:1254
736739
msgid ""
737740
"A ``match`` statement. ``subject`` holds the subject of the match (the "
738741
"object that is being matched against the cases) and ``cases`` contains an "
739742
"iterable of :class:`match_case` nodes with the different cases."
740743
msgstr ""
744+
"一条 ``match`` 语句。 ``subject`` 保存匹配的目标(与 cases 相匹配的对象)而 ``cases`` 包含一个由不同分支的 "
745+
":class:`match_case` 节点组成的可迭代对象。"
741746

742747
#: ../../library/ast.rst:1260
743748
msgid ""
@@ -746,18 +751,20 @@ msgid ""
746751
":class:`AST` nodes produced for patterns differ from those produced for "
747752
"expressions, even when they share the same syntax."
748753
msgstr ""
754+
"一个 ``match`` 语句中单独的 case 模式。 ``pattern`` 包含目标将要去匹配的匹配模式。 请注意针对模式所产生的 "
755+
":class:`AST` 节点不同于针对表达式所产生的节点,即使它们共享相同的语法。"
749756

750757
#: ../../library/ast.rst:1265
751758
msgid ""
752759
"The ``guard`` attribute contains an expression that will be evaluated if the"
753760
" pattern matches the subject."
754-
msgstr ""
761+
msgstr "``guard`` 属性包含一个当模式与目标相匹配时将被求值的表达式。"
755762

756763
#: ../../library/ast.rst:1268
757764
msgid ""
758765
"``body`` contains a list of nodes to execute if the pattern matches and the "
759766
"result of evaluating the guard expression is true."
760-
msgstr ""
767+
msgstr "``body`` 包含一个当模式匹配并且对 guard 表达式求值的结果为真时要执行的节点列表。"
761768

762769
#: ../../library/ast.rst:1311
763770
msgid ""
@@ -766,13 +773,17 @@ msgid ""
766773
"match statement documentation. This pattern succeeds if the match subject is"
767774
" equal to the evaluated value."
768775
msgstr ""
776+
"一个按相等性进行比较的匹配字面值或值模式。 ``value`` 为一个表达式节点。 允许的值节点被限制为 match 语句文档中所描述的节点。 "
777+
"如果匹配目标等于 value 的求值结果则模式匹配成功。"
769778

770779
#: ../../library/ast.rst:1338
771780
msgid ""
772781
"A match literal pattern that compares by identity. ``value`` is the "
773782
"singleton to be compared against: ``None``, ``True``, or ``False``. This "
774783
"pattern succeeds if the match subject is the given constant."
775784
msgstr ""
785+
"一个按标识号进行比较的匹配字面值模式。 ``value`` 为用于比较的单例对象: ``None``, ``True`` 或 ``False``。 "
786+
"如果匹配目标为给定的常量则该模式匹配成功。"
776787

777788
#: ../../library/ast.rst:1363
778789
msgid ""
@@ -781,6 +792,8 @@ msgid ""
781792
"variable length sequence if one of the subpatterns is a ``MatchStar`` node, "
782793
"otherwise matches a fixed length sequence."
783794
msgstr ""
795+
"一个匹配序列模式。 ``patterns`` 包含当目标为一个序列时要与目标元素进行匹配的模式。 如果某一子模式为 ``MatchStar`` "
796+
"节点则将匹配一个变长度序列,否则将匹配一个固定长度序列。"
784797

785798
#: ../../library/ast.rst:1394
786799
msgid ""
@@ -789,6 +802,8 @@ msgid ""
789802
"sequence elements is bound to that name if the overall sequence pattern is "
790803
"successful."
791804
msgstr ""
805+
"匹配一个可变长度匹配序列模式中的剩余部分序列。 如果 ``name`` 不为 "
806+
"``None``,则当整个序列模式匹配成功时将把一个包含剩余序列元素的列表绑定到该名称。"
792807

793808
#: ../../library/ast.rst:1434
794809
msgid ""

0 commit comments

Comments
 (0)