1
- # SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2001-2022, Python Software Foundation
1
+ # Copyright (C) 2001-2023, Python Software Foundation
3
2
# This file is distributed under the same license as the Python package.
4
3
#
5
4
# Translators:
5
+ # Matt Wang <[email protected] >, 2023
6
6
msgid ""
7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.12\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
10
"POT-Creation-Date : 2022-10-15 20:43+0000\n "
11
11
"PO-Revision-Date : 2015-12-09 17:51+0000\n "
12
- "
Last-Translator :
Liang-Bo Wang <[email protected] >\n"
12
+ "
Last-Translator :
Matt Wang <[email protected] >\n"
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
14
"tw)\n "
15
15
"Language : zh_TW\n "
@@ -20,7 +20,7 @@ msgstr ""
20
20
21
21
#: ../../library/symtable.rst:2
22
22
msgid ":mod:`symtable` --- Access to the compiler's symbol tables"
23
- msgstr ""
23
+ msgstr ":mod:`symtable` --- 存取編譯器的符號表 "
24
24
25
25
#: ../../library/symtable.rst:7
26
26
msgid "**Source code:** :source:`Lib/symtable.py`"
@@ -33,175 +33,193 @@ msgid ""
33
33
"every identifier in the code. :mod:`symtable` provides an interface to "
34
34
"examine these tables."
35
35
msgstr ""
36
+ "符號表是在生成位元組碼 (bytecode) 之前由編譯器從 AST 生成的。符號表負責計算程"
37
+ "式碼中每個識別器 (identifier) 的範圍。:mod:`symtable` 提供了一個介面來檢查這"
38
+ "些表。"
36
39
37
40
#: ../../library/symtable.rst:22
38
41
msgid "Generating Symbol Tables"
39
- msgstr ""
42
+ msgstr "產生符號表 "
40
43
41
44
#: ../../library/symtable.rst:26
42
45
msgid ""
43
46
"Return the toplevel :class:`SymbolTable` for the Python source *code*. "
44
47
"*filename* is the name of the file containing the code. *compile_type* is "
45
48
"like the *mode* argument to :func:`compile`."
46
49
msgstr ""
50
+ "回傳 Python 原始 *code* 的頂層 :class:`SymbolTable`。*filename* 是包含程式碼"
51
+ "之檔案之名稱。*compile_type* 類似於 :func:`compile` 的 *mode* 引數。"
47
52
48
53
#: ../../library/symtable.rst:32
49
54
msgid "Examining Symbol Tables"
50
- msgstr ""
55
+ msgstr "檢查符號表 "
51
56
52
57
#: ../../library/symtable.rst:36
53
58
msgid "A namespace table for a block. The constructor is not public."
54
59
msgstr ""
60
+ "一個區塊 (block) 的命名空間表 (namespace table) 。建構函式 (constructor) 並不"
61
+ "公開。"
55
62
56
63
#: ../../library/symtable.rst:40
57
64
msgid ""
58
65
"Return the type of the symbol table. Possible values are ``'class'``, "
59
66
"``'module'``, and ``'function'``."
60
67
msgstr ""
68
+ "回傳符號表的種類。可能的值為 ``'class'``、``'module'`` 和 ``'function'``。"
61
69
62
70
#: ../../library/symtable.rst:45
63
71
msgid "Return the table's identifier."
64
- msgstr ""
72
+ msgstr "回傳表的識別器。 "
65
73
66
74
#: ../../library/symtable.rst:49
67
75
msgid ""
68
76
"Return the table's name. This is the name of the class if the table is for "
69
77
"a class, the name of the function if the table is for a function, or "
70
78
"``'top'`` if the table is global (:meth:`get_type` returns ``'module'``)."
71
79
msgstr ""
80
+ "回傳表的名稱。如果表用於類別,則這是類別的名稱;如果表用於函式,則這是函式的"
81
+ "名稱;如果表是全域的,則為 ``'top'`` (:meth:`get_type` 會回傳 "
82
+ "``'module'``)。"
72
83
73
84
#: ../../library/symtable.rst:55
74
85
msgid "Return the number of the first line in the block this table represents."
75
- msgstr ""
86
+ msgstr "回傳此表所代表的區塊中第一行的編號。 "
76
87
77
88
#: ../../library/symtable.rst:59
78
89
msgid "Return ``True`` if the locals in this table can be optimized."
79
- msgstr ""
90
+ msgstr "如果可以最佳化該表中的局部變數,則回傳 ``True``。 "
80
91
81
92
#: ../../library/symtable.rst:63
82
93
msgid "Return ``True`` if the block is a nested class or function."
83
- msgstr ""
94
+ msgstr "如果區塊是巢狀類別或函式,則回傳 ``True``。 "
84
95
85
96
#: ../../library/symtable.rst:67
86
97
msgid ""
87
98
"Return ``True`` if the block has nested namespaces within it. These can be "
88
99
"obtained with :meth:`get_children`."
89
100
msgstr ""
101
+ "如果區塊內有巢狀命名空間,則回傳 ``True``。這些可以通過 :meth:`get_children` "
102
+ "獲得。"
90
103
91
104
#: ../../library/symtable.rst:72
92
105
msgid ""
93
106
"Return a view object containing the names of symbols in the table. See the :"
94
107
"ref:`documentation of view objects <dict-views>`."
95
108
msgstr ""
109
+ "回傳包含表中符號之名稱的視圖物件 (view object)。請參閱\\ :ref:`視圖物件的文"
110
+ "件 <dict-views>`。"
96
111
97
112
#: ../../library/symtable.rst:77
98
113
msgid "Lookup *name* in the table and return a :class:`Symbol` instance."
99
- msgstr ""
114
+ msgstr "在表中查找 *name* 並回傳一個 :class:`Symbol` 實例。 "
100
115
101
116
#: ../../library/symtable.rst:81
102
117
msgid "Return a list of :class:`Symbol` instances for names in the table."
103
- msgstr ""
118
+ msgstr "回傳表中名稱的 :class:`Symbol` 實例串列。 "
104
119
105
120
#: ../../library/symtable.rst:85
106
121
msgid "Return a list of the nested symbol tables."
107
- msgstr ""
122
+ msgstr "回傳巢狀符號表的串列。 "
108
123
109
124
#: ../../library/symtable.rst:90
110
125
msgid ""
111
126
"A namespace for a function or method. This class inherits :class:"
112
127
"`SymbolTable`."
113
- msgstr ""
128
+ msgstr "一個函式或方法的命名空間。該類別繼承自 :class:`SymbolTable`。 "
114
129
115
130
#: ../../library/symtable.rst:95
116
131
msgid "Return a tuple containing names of parameters to this function."
117
- msgstr ""
132
+ msgstr "回傳一個包含此函式參數名稱的元組 (tuple)。 "
118
133
119
134
#: ../../library/symtable.rst:99
120
135
msgid "Return a tuple containing names of locals in this function."
121
- msgstr ""
136
+ msgstr "回傳一個包含此函式中局部變數 (locals) 名稱的元組。 "
122
137
123
138
#: ../../library/symtable.rst:103
124
139
msgid "Return a tuple containing names of globals in this function."
125
- msgstr ""
140
+ msgstr "回傳一個包含此函式中全域變數 (globals) 名稱的元組。 "
126
141
127
142
#: ../../library/symtable.rst:107
128
143
msgid "Return a tuple containing names of nonlocals in this function."
129
- msgstr ""
144
+ msgstr "回傳一個包含此函式中非局部變數 (nonlocals) 名稱的元組。 "
130
145
131
146
#: ../../library/symtable.rst:111
132
147
msgid "Return a tuple containing names of free variables in this function."
133
- msgstr ""
148
+ msgstr "回傳一個包含此函式中自由變數 (free variables) 名稱的元組。 "
134
149
135
150
#: ../../library/symtable.rst:116
136
151
msgid "A namespace of a class. This class inherits :class:`SymbolTable`."
137
- msgstr ""
152
+ msgstr "一個類別的命名空間。該類別繼承自 :class:`SymbolTable`。 "
138
153
139
154
#: ../../library/symtable.rst:120
140
155
msgid "Return a tuple containing the names of methods declared in the class."
141
- msgstr ""
156
+ msgstr "回傳一個包含類別中聲明的方法名稱的元組。 "
142
157
143
158
#: ../../library/symtable.rst:125
144
159
msgid ""
145
160
"An entry in a :class:`SymbolTable` corresponding to an identifier in the "
146
161
"source. The constructor is not public."
147
162
msgstr ""
163
+ ":class:`SymbolTable` 中的條目對應於來源中的識別器。建構函式不是公開的。"
148
164
149
165
#: ../../library/symtable.rst:130
150
166
msgid "Return the symbol's name."
151
- msgstr ""
167
+ msgstr "回傳符號的名稱。 "
152
168
153
169
#: ../../library/symtable.rst:134
154
170
msgid "Return ``True`` if the symbol is used in its block."
155
- msgstr ""
171
+ msgstr "如果該符號在其區塊中使用,則回傳 ``True``。 "
156
172
157
173
#: ../../library/symtable.rst:138
158
174
msgid "Return ``True`` if the symbol is created from an import statement."
159
- msgstr ""
175
+ msgstr "如果符號是從 import 陳述式建立的,則回傳 ``True``。 "
160
176
161
177
#: ../../library/symtable.rst:142
162
178
msgid "Return ``True`` if the symbol is a parameter."
163
- msgstr ""
179
+ msgstr "如果符號是一個參數,則回傳 ``True``。 "
164
180
165
181
#: ../../library/symtable.rst:146
166
182
msgid "Return ``True`` if the symbol is global."
167
- msgstr ""
183
+ msgstr "如果符號是全域的,則回傳 ``True``。 "
168
184
169
185
#: ../../library/symtable.rst:150
170
186
msgid "Return ``True`` if the symbol is nonlocal."
171
- msgstr ""
187
+ msgstr "如果符號是非局部的,則回傳 ``True``。 "
172
188
173
189
#: ../../library/symtable.rst:154
174
190
msgid ""
175
191
"Return ``True`` if the symbol is declared global with a global statement."
176
- msgstr ""
192
+ msgstr "如果使用全域陳述式將符號聲明為全域的,則回傳 ``True``。 "
177
193
178
194
#: ../../library/symtable.rst:158
179
195
msgid "Return ``True`` if the symbol is local to its block."
180
- msgstr ""
196
+ msgstr "如果符號是其區塊的局部符號,則回傳 ``True``。 "
181
197
182
198
#: ../../library/symtable.rst:162
183
199
msgid "Return ``True`` if the symbol is annotated."
184
- msgstr ""
200
+ msgstr "如果符號有被註釋,則回傳 ``True``。 "
185
201
186
202
#: ../../library/symtable.rst:168
187
203
msgid ""
188
204
"Return ``True`` if the symbol is referenced in its block, but not assigned "
189
205
"to."
190
206
msgstr ""
207
+ "如果該符號在其區塊中被參照 (referenced) 但未被賦值 (assigned),則回傳 "
208
+ "``True``。"
191
209
192
210
#: ../../library/symtable.rst:173
193
211
msgid "Return ``True`` if the symbol is assigned to in its block."
194
- msgstr ""
212
+ msgstr "如果該符號被分配到其區塊中,則回傳 ``True``。 "
195
213
196
214
#: ../../library/symtable.rst:177
197
215
msgid "Return ``True`` if name binding introduces new namespace."
198
- msgstr ""
216
+ msgstr "如果名稱綁定引入 (introduce) 新的命名空間,則回傳 ``True``。 "
199
217
200
218
#: ../../library/symtable.rst:179
201
219
msgid ""
202
220
"If the name is used as the target of a function or class statement, this "
203
221
"will be true."
204
- msgstr ""
222
+ msgstr "如果名稱用作函式或類別陳述式的目標,則這將會是 true。 "
205
223
206
224
#: ../../library/symtable.rst:182
207
225
msgid "For example::"
@@ -216,13 +234,17 @@ msgid ""
216
234
"``True``, the name may also be bound to other objects, like an int or list, "
217
235
"that does not introduce a new namespace."
218
236
msgstr ""
237
+ "請注意,單個名稱可以綁定到多個物件。如果結果為 ``True``,則該名稱也可能被綁定"
238
+ "到其他物件,例如 int 或 list,而不會引入新的命名空間。"
219
239
220
240
#: ../../library/symtable.rst:194
221
241
msgid "Return a list of namespaces bound to this name."
222
- msgstr ""
242
+ msgstr "回傳綁定到該名稱的命名空間的串列。 "
223
243
224
244
#: ../../library/symtable.rst:198
225
245
msgid ""
226
246
"Return the namespace bound to this name. If more than one or no namespace is "
227
247
"bound to this name, a :exc:`ValueError` is raised."
228
248
msgstr ""
249
+ "回傳綁定到該名稱的命名空間。如果該名稱綁定了多個命名空間或沒有命名空間,則會"
250
+ "引發 :exc:`ValueError`。"
0 commit comments