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

Skip to content

Commit 33ac407

Browse files
[po] auto sync
1 parent 4b48a55 commit 33ac407

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

library/ast.po

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,12 +1042,15 @@ msgid ""
10421042
"location information (:attr:`lineno`, :attr:`end_lineno`, "
10431043
":attr:`col_offset`, or :attr:`end_col_offset`) is missing, return ``None``."
10441044
msgstr ""
1045+
"获取生成 *node* 的 *source* 的源代码段。 如果丢失了某些位置信息 (:attr:`lineno`, "
1046+
":attr:`end_lineno`, :attr:`col_offset` 或 :attr:`end_col_offset`),则返回 "
1047+
"``None``。"
10451048

10461049
#: ../../library/ast.rst:1621
10471050
msgid ""
10481051
"If *padded* is ``True``, the first line of a multi-line statement will be "
10491052
"padded with spaces to match its original position."
1050-
msgstr ""
1053+
msgstr "如果 *padded* 为 ``True``,则多行语句的第一行将以与其初始位置相匹配的空格填充。"
10511054

10521055
#: ../../library/ast.rst:1629
10531056
msgid ""
@@ -1058,26 +1061,33 @@ msgid ""
10581061
"setting them to the values of the parent node. It works recursively "
10591062
"starting at *node*."
10601063
msgstr ""
1064+
"当你通过 :func:`compile` 来编译节点树时,编译器会准备接受每个支持 :attr:`lineno` 和 "
1065+
":attr:`col_offset` 属性的节点的相应信息。 "
1066+
"对已生成节点来说这是相当繁琐的,因此这个辅助工具会递归地为尚未设置这些属性的节点添加它们,具体做法是将其设为父节点的对应值。 它将从 *node* "
1067+
"开始递归地执行。"
10611068

10621069
#: ../../library/ast.rst:1638
10631070
msgid ""
10641071
"Increment the line number and end line number of each node in the tree "
10651072
"starting at *node* by *n*. This is useful to \"move code\" to a different "
10661073
"location in a file."
1067-
msgstr ""
1074+
msgstr "从 *node* 开始按 *n* 递增节点树中每个节点的行号和结束行号。 这在“移动代码”到文件中的不同位置时很有用处。"
10681075

10691076
#: ../../library/ast.rst:1645
10701077
msgid ""
10711078
"Copy source location (:attr:`lineno`, :attr:`col_offset`, "
10721079
":attr:`end_lineno`, and :attr:`end_col_offset`) from *old_node* to "
10731080
"*new_node* if possible, and return *new_node*."
10741081
msgstr ""
1082+
"在可能的情况下将源位置 (:attr:`lineno`, :attr:`col_offset`, :attr:`end_lineno` 和 "
1083+
":attr:`end_col_offset`) 从 *old_node* 拷贝到 *new_node*,并返回 *new_node*。"
10751084

10761085
#: ../../library/ast.rst:1652
10771086
msgid ""
10781087
"Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields`` "
10791088
"that is present on *node*."
10801089
msgstr ""
1090+
"针对于 *node* 上在 ``node._fields`` 中出现的每个字段产生一个 ``(fieldname, value)`` 元组。"
10811091

10821092
#: ../../library/ast.rst:1658
10831093
msgid ""

0 commit comments

Comments
 (0)