8000 Apply suggestions from code review · python/python-docs-zh-tw@a19cd24 · GitHub
[go: up one dir, main page]

Skip to content

Commit a19cd24

Browse files
mattwang44ken71301
andcommitted
Apply suggestions from code review
Co-authored-by: Payon <ken71301@hotmail.com>
1 parent c80de0e commit a19cd24

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

library/ast.po

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ msgid ""
3232
"with each Python release; this module helps to find out programmatically "
3333
"what the current grammar looks like."
3434
msgstr ""
35-
":mod:`ast` 模組可以幫助 Python 應用程式處理 Python 抽象語法樹狀資料結構。抽象"
36-
"語法本身可能會隨著每個 Python 版本發布而改變;此模組有助於以程式化的方式來得"
37-
"知當前語法的面貌。"
35+
":mod:`ast` 模組可以幫助 Python 應用程式處理 Python 抽象語法文法 (abstract "
36+
"syntax grammar) 樹狀資料結構。抽象語法本身可能會隨著每個 Python 版本發布而改"
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 ""
@@ -244,14 +244,15 @@ msgid ""
244244
"A single Python :ref:`expression input <expression-input>`. Node type "
245245
"generated by :func:`ast.parse` when *mode* is ``\"eval\"``."
246246
msgstr ""
247-
"單個 Python :ref:`運算式輸入 <expression-input>`,為當 *mode* 是 "
248-
"``\"eval\"`` 時,:func:`ast.parse` 生成的節點型別。"
247+
"單個 Python :ref:`運算式輸入 <expression-input>`。當 *mode* 是 ``\"eval\"`` "
248+
"時,:func:`ast.parse` 生成的節點型別。"
249249

250250
#: ../../library/ast.rst:182
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 ""
255+
"*body* 是單個節點,是\\ :ref:`運算式型別 <ast-expressions>`\\ 的其中之一。"
255256

256257
#: ../../library/ast.rst:194
257258
msgid ""

0 commit comments

Comments
 (0)
0