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

Skip to content

Commit 2b8dc9a

Browse files
committed
[po] auto sync bot
1 parent b8a01fc commit 2b8dc9a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tutorial/classes.po

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,8 @@ msgid ""
373373
" normally have a peculiar form of argument list, dictated by the calling "
374374
"conventions for methods --- again, this is explained later."
375375
msgstr ""
376+
"在实践中,类定义内的语句通常都是函数定义,但也允许有其他语句,有时还很有用 --- 我们会稍后再回来说明这个问题。 "
377+
"在类内部的函数定义通常具有一种特别形式的参数列表,这是方法调用的约定规范所指明的 --- 这个问题也将在稍后再说明。"
376378

377379
#: ../../tutorial/classes.rst:242
378380
msgid ""
@@ -381,6 +383,8 @@ msgid ""
381383
"new namespace. In particular, function definitions bind the name of the new"
382384
" function here."
383385
msgstr ""
386+
"当进入类定义时,将创建一个新的命名空间,并将其用作局部作用域 --- 因此,所有对局部变量的赋值都是在这个新命名空间之内。 "
387+
"特别的,函数定义会绑定到这里的新函数名称。"
384388

385389
#: ../../tutorial/classes.rst:247
386390
msgid ""
@@ -392,6 +396,10 @@ msgid ""
392396
"here to the class name given in the class definition header "
393397
"(:class:`ClassName` in the example)."
394398
msgstr ""
399+
"当(从结尾处)正常离开类定义时,将创建一个 *类对象*。 "
400+
"这基本上是一个包围在类定义所创建命名空间内容周围的包装器;我们将在下一节了解有关类对象的更多信息。 "
401+
"原始的(在进入类定义之前起作用的)局部作用域将重新生效,类对象将在这里被绑定到类定义头所给出的类名称 (在这个示例中为 "
402+
":class:`ClassName`)。"
395403

396404
#: ../../tutorial/classes.rst:259
397405
msgid "Class Objects"
@@ -410,6 +418,8 @@ msgid ""
410418
" that were in the class's namespace when the class object was created. So, "
411419
"if the class definition looked like this::"
412420
msgstr ""
421+
"*属性引用* 使用 Python 中所有属性引用所使用的标准语法: ``obj.name``。 "
422+
"有效的属性名称是类对象被创建时存在于类命名空间中的所有名称。 因此,如果类定义是这样的::"
413423

414424
#: ../../tutorial/classes.rst:276
415425
msgid ""

0 commit comments

Comments
 (0)