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

Skip to content

Commit 7e14b4d

Browse files
committed
[po] auto sync bot
1 parent c09ab3d commit 7e14b4d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

glossary.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ msgid ""
8383
"module), import finders and loaders (in the :mod:`importlib.abc` module). "
8484
"You can create your own ABCs with the :mod:`abc` module."
8585
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。"
8692

8793
#: ../../glossary.rst:42
8894
msgid "annotation"

0 commit comments

Comments
 (0)