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

Skip to content

Commit beec4a0

Browse files
[po] auto sync
1 parent 63bf458 commit beec4a0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tutorial/classes.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ msgid ""
166166
" the global names defined in the module: they share the same namespace! "
167167
"[#]_"
168168
msgstr ""
169-
"点号之后的名称都可以叫作 **属性**。例如,表达式 ``z.real`` 中,``real`` 是对象 ``z`` "
169+
"点号之后的名称是 **属性**。例如,表达式 ``z.real`` 中,``real`` 是对象 ``z`` "
170170
"的属性。严格来说,对模块中名称的引用是属性引用:表达式 ``modname.funcname`` 中,``modname`` "
171171
"是模块对象,``funcname`` 是模块的属性。模块属性和模块中定义的全局名称之间存在直接的映射:它们共享相同的命名空间! [#]_"
172172

@@ -207,7 +207,7 @@ msgid ""
207207
" describe what actually happens.) Of course, recursive invocations each "
208208
"have their own local namespace."
209209
msgstr ""
210-
"函数的本地命名空间在调用该函数时创建,并在函数返回或抛出不在函数内部处理的错误时被删除。(比起描述到底发生了什么,最好忘掉了它吧。)当然,每次递归调用都会有它自己的本地命名空间。"
210+
"函数的本地命名空间在调用该函数时创建,并在函数返回或抛出不在函数内部处理的错误时被删除。(比起描述到底发生了什么,最好忘了它吧。)当然,每次递归调用都会有自己的本地命名空间。"
211211

212212
#: ../../tutorial/classes.rst:112
213213
msgid ""
@@ -226,7 +226,7 @@ msgstr "作用域虽然是静态确定的,但会被动态使用。执行期间
226226

227227
#: ../../tutorial/classes.rst:120
228228
msgid "the innermost scope, which is searched first, contains the local names"
229-
msgstr "最内部作用域,包含局部名称,并会首先在其中进行搜索"
229+
msgstr "最内层作用域,包含局部名称,并首先在其中进行搜索"
230230

231231
#: ../../tutorial/classes.rst:121
232232
msgid ""
@@ -242,7 +242,7 @@ msgstr "倒数第二个作用域,包含当前模块的全局名称"
242242
msgid ""
243243
"the outermost scope (searched last) is the namespace containing built-in "
244244
"names"
245-
msgstr "最外部的作用域,包含内置名称的命名空间,最后搜索"
245+
msgstr "最外层的作用域,包含内置名称的命名空间,最后搜索"
246246

247247
#: ../../tutorial/classes.rst:126
248248
msgid ""
@@ -254,8 +254,8 @@ msgid ""
254254
"create a *new* local variable in the innermost scope, leaving the "
255255
"identically named outer variable unchanged)."
256256
msgstr ""
257-
"如果把名称声明为全局变量,则所有引用和赋值将直接指向包含该模块的全局名称的中间作用域。 要重新绑定在最内层作用域以外找到的变量,可以使用 "
258-
":keyword:`nonlocal` 语句把该变量声明为非局部变量。未声明为非局部变量的变量是只读的,(尝试写入这种变量只会在最内层作用域中创建一个 "
257+
"如果把名称声明为全局变量,则所有引用和赋值将直接指向包含该模块的全局名称的中间作用域。重新绑定在最内层作用域以外找到的变量,使用 "
258+
":keyword:`nonlocal` 语句把该变量声明为非局部变量。未声明为非局部变量的变量是只读的,(写入只读变量会在最内层作用域中创建一个 "
259259
"**新的** 局部变量,而同名的外部变量保持不变。)"
260260

261261
#: ../../tutorial/classes.rst:133

0 commit comments

Comments
 (0)