Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3021b26 commit ddf4446Copy full SHA for ddf4446
2 files changed
reference/datamodel.po
@@ -2518,6 +2518,9 @@ msgid ""
2518
"``__init_subclass__`` solely applies to future subclasses of the class "
2519
"defining the method."
2520
msgstr ""
2521
+"当一个类继承其他类时,那个类的 *__init_subclass__* "
2522
+"会被调用。这样就可以编写能够改变子类行为的类。这与类装饰器有紧密的关联,但是类装饰器是影响它们所应用的特定类,而 "
2523
+"``__init_subclass__`` 则只作用于定义了该方法的类所派生的子类。"
2524
2525
#: ../../reference/datamodel.rst:1799
2526
msgid ""
tutorial/modules.po
@@ -189,7 +189,7 @@ msgstr ""
189
190
#: ../../tutorial/modules.rst:146
191
msgid "Executing modules as scripts"
192
-msgstr " 以脚本的方式执行模块"
+msgstr "以脚本的方式执行模块"
193
194
#: ../../tutorial/modules.rst:148
195
msgid "When you run a Python module with ::"
0 commit comments