Skip to content

Commit c26ac10

Browse files
authored
Merge pull request yidao620c#162 from CharAct3/fix_typo
Fix typo in 9.10 and 7.3
2 parents c10cf4b + 391aedd commit c26ac10

2 files changed

+2
-2
lines changed

source/c07/p03_attach_informatinal_matadata_to_function_arguments.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ python解释器不会对这些注解添加任何的语义。它们不会被类
4242
4343
尽管注解的使用方法可能有很多种,但是它们的主要用途还是文档。
4444
因为python并没有类型声明,通常来讲仅仅通过阅读源码很难知道应该传递什么样的参数给这个函数。
45-
这时候使用注解就能给程序员更多的提示,让他们可以争取的使用函数
45+
这时候使用注解就能给程序员更多的提示,让他们可以正确的使用函数
4646

4747
参考9.20小节的一个更加高级的例子,演示了如何利用注解来实现多分派(比如重载函数)。

source/c09/p10_apply_decorators_to_class_and_static_methods.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
while n > 0:
8282
n -= 1
8383
84-
那么你调用这个镜头方法时就会报错
84+
那么你调用这个静态方法时就会报错
8585

8686
.. code-block:: python
8787

0 commit comments

Comments
 (0)