@@ -503,10 +503,12 @@ msgid ""
503503"comprehensions. ``elt`` (or ``key`` and ``value``) is a single node "
504504"representing the part that will be evaluated for each item."
505505msgstr ""
506+ "列表和集合推导式、生成器表达式以及字典推导式。 ``elt`` (或 ``key`` 和 ``value``) "
507+ "是一个代表将针对每个条目被求值的部分的单独节点。"
506508
507509#: ../../library/ast.rst:626
508510msgid "``generators`` is a list of :class:`comprehension` nodes."
509- msgstr ""
511+ msgstr "``generators`` 是一个由 :class:`comprehension` 节点组成的列表。 "
510512
511513#: ../../library/ast.rst:668
512514msgid ""
@@ -515,36 +517,42 @@ msgid ""
515517"``iter`` is the object to iterate over. ``ifs`` is a list of test "
516518"expressions: each ``for`` clause can have multiple ``ifs``."
517519msgstr ""
520+ "推导式中的一个 ``for`` 子句。 ``target`` 是针对每个元素使用的引用 —— 通常为一个 :class:`Name` 或 "
521+ ":class:`Tuple` 节点。 ``iter`` 是要执行迭代的对象。 ``ifs`` 是一个由测试表达式组成的列表:每个 ``for`` "
522+ "子句都可以拥有多个 ``ifs``。"
518523
519524#: ../../library/ast.rst:673
520525msgid ""
521526"``is_async`` indicates a comprehension is asynchronous (using an ``async "
522527"for`` instead of ``for``). The value is an integer (0 or 1)."
523528msgstr ""
529+ "``is_async`` 表明推导式是异步的 (使用 ``async for`` 而不是 ``for``)。 它的值是一个整数 (0 或 1)。"
524530
525531#: ../../library/ast.rst:739
526532msgid "Statements"
527- msgstr ""
533+ msgstr "语句 "
528534
529535#: ../../library/ast.rst:743
530536msgid ""
531537"An assignment. ``targets`` is a list of nodes, and ``value`` is a single "
532538"node."
533- msgstr ""
539+ msgstr "一次赋值。 ``targets`` 是一个由节点组成的列表,而 ``value`` 是一个单独节点。 "
534540
535541#: ../../library/ast.rst:745
536542msgid ""
537543"Multiple nodes in ``targets`` represents assigning the same value to each. "
538544"Unpacking is represented by putting a :class:`Tuple` or :class:`List` within"
539545" ``targets``."
540546msgstr ""
547+ "``targets`` 中有多个节点表示将同一个值赋给多个目标。 解包操作是通过在 ``targets`` 中放入一个 :class:`Tuple` 或"
548+ " :class:`List` 来表示的。"
541549
542550#: ../../library/ast.rst:751 ../../library/ast.rst:1038
543551#: ../../library/ast.rst:1211 ../../library/ast.rst:1632
544552msgid ""
545553"``type_comment`` is an optional string with the type annotation as a "
546554"comment."
547- msgstr ""
555+ msgstr "``type_comment`` 是带有以注释表示的类型标注的可选的字符串。 "
548556
549557#: ../../library/ast.rst:781
550558msgid ""
@@ -556,6 +564,10 @@ msgid ""
556564"not appear in between parenthesis and are hence pure names and not "
557565"expressions."
558566msgstr ""
567+ "一次带有类型标注的赋值。 ``target`` 为单独节点并可以是 :class:`Name`, :class:`Attribute` 或 "
568+ ":class:`Subscript` 之一。 ``annotation`` 为标注,例如一个 :class:`Constant` 或 "
569+ ":class:`Name` 节点。 ``value`` 为可选的单独节点。 ``simple`` 为一个布尔整数,其值对于 ``target`` "
570+ "中不出现在括号之内因而是纯名称而非表达式的 :class:`Name` 节点将为 True。"
559571
560572#: ../../library/ast.rst:836
561573msgid ""
@@ -564,6 +576,9 @@ msgid ""
564576"context), ``op`` is :class:`Add`, and ``value`` is a :class:`Constant` with "
565577"value for 1."
566578msgstr ""
579+ "增强赋值,如 ``a += 1``。 在下面的例子中,``target`` 是一个针对 ``x`` (带有 :class:`Store` 上下文) 的 "
580+ ":class:`Name` 节点,``op`` 为 :class:`Add`,而 ``value`` 是一个值为 1 的 "
581+ ":class:`Constant`。"
567582
568583#: ../../library/ast.rst:841
569584msgid ""
0 commit comments