File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1119,13 +1119,13 @@ msgstr ""
11191119msgid ""
11201120"Class attribute assignments update the class's dictionary, never the "
11211121"dictionary of a base class."
1122- msgstr ""
1122+ msgstr "类属性赋值会更新类的字典,但不会更新基类的字典。 "
11231123
11241124#: ../../reference/datamodel.rst:784
11251125msgid ""
11261126"A class object can be called (see above) to yield a class instance (see "
11271127"below)."
1128- msgstr ""
1128+ msgstr "类对象可被调用 (见上文) 以产生一个类实例 (见下文)。 "
11291129
11301130#: ../../reference/datamodel.rst:794
11311131msgid ""
@@ -1139,10 +1139,15 @@ msgid ""
11391139":term:`variable annotations <variable annotation>` collected during class "
11401140"body execution."
11411141msgstr ""
1142+ "特殊属性: :attr:`~definition.__name__` 为类的名称; :attr:`__module__` 为类所在模块的名称; "
1143+ ":attr:`~object.__dict__` 为包含类命名空间的字典; :attr:`~class.__bases__` "
1144+ "为包含基类的元组,按其在基类列表中的出现顺序排列; :attr:`__doc__` 为类的文档字符串,如果没有则为 ``None``; "
1145+ ":attr:`__annotations__` (可选) 为一个包含 :term:`变量标注 <variable annotation>` "
1146+ "的字典,它是在类体执行时获取的。"
11421147
11431148#: ../../reference/datamodel.rst:844
11441149msgid "Class instances"
1145- msgstr ""
1150+ msgstr "类实例 "
11461151
11471152#: ../../reference/datamodel.rst:810
11481153msgid ""
You can’t perform that action at this time.
0 commit comments