Skip to content

Commit d1ab350

Browse files
mattwang44ken71301
andauthored
Apply suggestions from code review
Co-authored-by: Payon <[email protected]>
1 parent c80de0e commit d1ab350

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

library/ast.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ msgid ""
3434
msgstr ""
3535
":mod:`ast` 模組可以幫助 Python 應用程式處理 Python 抽象語法樹狀資料結構。抽象"
3636
"語法本身可能會隨著每個 Python 版本發布而改變;此模組有助於以程式化的方式來得"
37-
"知當前語法的面貌。"
37+
"知當前文法的面貌。"
3838

3939
#: ../../library/ast.rst:23
4040
msgid ""
@@ -83,8 +83,8 @@ msgid ""
8383
"rules with alternatives (aka \"sums\"), the left-hand side class is "
8484
"abstract: only instances of specific constructor nodes are ever created."
8585
msgstr ""
86-
"抽象文法中為每個左側符號定義了一個類別(例如:class:`ast.stmt` 或 :class:"
87-
"`ast.expr`\\ )。另外,也為每個右側的建構函式 (constructor) 定義了一個類別;"
86+
"抽象文法中為每個左側符號定義了一個類別(例如 :class:`ast.stmt` 或 :class:"
87+
"`ast.expr`\\ )。此外,也為每個右側的建構函式 (constructor) 定義了一個類別;"
8888
"這些類別繼承自左側樹的類別。例如,:class:`ast.BinOp` 繼承自 :class:`ast."
8989
"expr`。對於具有替代方案(即為「和 (sums)」)的生產規則,左側類別是抽象的:僅"
9090
"有特定建構函式節點的實例會被建立。"
@@ -141,7 +141,7 @@ msgid ""
141141
"one can get the source segment of a one-line expression node using "
142142
"``source_line[node.col_offset : node.end_col_offset]``."
143143
msgstr ""
144-
"請注意,編譯器不需要知道結束位置,因此為可選的。結束偏移量在最後一個符號\\ *"
144+
"請注意,編譯器並不需要結束位置,因此其為可選的。結束偏移量在最後一個符號\\ *"
145145
"之後*,例如可以使用 ``source_line[node.col_offset : node.end_col_offset]`` 來"
146146
"獲取單列運算式節點 (expression node) 的原始片段。"
147147

@@ -229,7 +229,7 @@ msgstr ""
229229

230230
#: ../../library/ast.rst:160
231231
msgid "*body* is a :class:`list` of the module's :ref:`ast-statements`."
232-
msgstr "*body* 是模組的\\ :ref:`ast-statements` :class:`list`。"
232+
msgstr "*body* 是模組的\\ :ref:`ast-statements` 的一個 :class:`list`。"
233233

234234
#: ../../library/ast.rst:162
235235
msgid ""
@@ -251,7 +251,7 @@ msgstr ""
251251
msgid ""
252252
"*body* is a single node, one of the :ref:`expression types <ast-"
253253
"expressions>`."
254-
msgstr "*body* 是單個節點,是\\ :ref:`運算式型別 <ast-expressions>`\\ 之一。"
254+
msgstr "*body* 是單個節點,是\\ :ref:`運算式型別 <ast-expressions>`\\ 的其中之一。"
255255

256256
#: ../../library/ast.rst:194
257257
msgid ""

0 commit comments

Comments
 (0)