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 c09ab3d commit 7e14b4dCopy full SHA for 7e14b4d
1 file changed
glossary.po
@@ -83,6 +83,12 @@ msgid ""
83
"module), import finders and loaders (in the :mod:`importlib.abc` module). "
84
"You can create your own ABCs with the :mod:`abc` module."
85
msgstr ""
86
+"抽象基类简称 ABC,是对 :term:`duck-typing` 的补充,它提供了一种定义接口的新方式,相比之下其他技巧例如 "
87
+":func:`hasattr` 显得过于笨拙或有微妙错误 (例如使用 :ref:`魔术方法 <special-lookup>`)。ABC "
88
+"引入了虚拟子类,这种类并非继承自其他类,但却仍能被 :func:`isinstance` 和 :func:`issubclass` 所认可;详见 "
89
+":mod:`abc` 模块文档。Python 自带许多内置的 ABC 用于实现数据结构 (在 :mod:`collections.abc` 模块中), "
90
+"数字 (在 :mod:`numbers` 模块中), 流 (在 :mod:`io` 模块中), 导入查找器和加载器 (在 "
91
+":mod:`importlib.abc` 模块中)。你可以使用 :mod:`abc` 模块来创建自己的 ABC。"
92
93
#: ../../glossary.rst:42
94
msgid "annotation"
0 commit comments