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 a667842 commit 412f4b7Copy full SHA for 412f4b7
1 file changed
glossary.po
@@ -639,7 +639,7 @@ msgid ""
639
msgstr ""
640
"指一种编程风格,它并不依靠查找对象类型来确定其是否具有正确的接口,而是直接调用或使用其方法或属性 "
641
"(\"看起来像鸭子,叫起来也像鸭子,那么肯定就是鸭子。\") 由于强调接口而非特定类型,设计良好的代码可通过允许多态替代来提升灵活性。鸭子类型避免使用"
642
-" :func:`type` 或 :func:`isinstance` 检测。(但是请注意,鸭子类型可以使用 :term:`抽象基类 <abstract "
+" :func:`type` 或 :func:`isinstance` 检测。(但要注意鸭子类型可以使用 :term:`抽象基类 <abstract "
643
"base class>` 作为补充。) 而往往会采用 :func:`hasattr` 检测或是 :term:`EAFP` 编程。"
644
645
#: ../../glossary.rst:320
0 commit comments