未验证 提交 69020bce 编写于 作者: 飞龙 提交者: GitHub

Update 2.7.md

上级 e87ec50f
...@@ -268,7 +268,7 @@ ComplexMA(1.0, 3.141592653589793) ...@@ -268,7 +268,7 @@ ComplexMA(1.0, 3.141592653589793)
return add.implementations[types](z1, z2) return add.implementations[types](z1, z2)
``` ```
add函数的定义本身没有任何功能;它完全地依赖于一个叫做add.implementations的字典去实现泛用加法。我们可以构建如下的字典。 `add`函数的定义本身没有任何功能;它完全地依赖于一个叫做`add.implementations`的字典去实现泛用加法。我们可以构建如下的字典。
```py ```py
>>> add.implementations = {} >>> add.implementations = {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册