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

Skip to content

Commit 412f4b7

Browse files
committed
[po] auto sync bot
1 parent a667842 commit 412f4b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

glossary.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ msgid ""
639639
msgstr ""
640640
"指一种编程风格,它并不依靠查找对象类型来确定其是否具有正确的接口,而是直接调用或使用其方法或属性 "
641641
"(\"看起来像鸭子,叫起来也像鸭子,那么肯定就是鸭子。\") 由于强调接口而非特定类型,设计良好的代码可通过允许多态替代来提升灵活性。鸭子类型避免使用"
642-
" :func:`type` 或 :func:`isinstance` 检测。(但是请注意,鸭子类型可以使用 :term:`抽象基类 <abstract "
642+
" :func:`type` 或 :func:`isinstance` 检测。(但要注意鸭子类型可以使用 :term:`抽象基类 <abstract "
643643
"base class>` 作为补充。) 而往往会采用 :func:`hasattr` 检测或是 :term:`EAFP` 编程。"
644644

645645
#: ../../glossary.rst:320

0 commit comments

Comments
 (0)