We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21b3740 commit eea7d1eCopy full SHA for eea7d1e
1 file changed
Class/class_and_object.md
@@ -30,7 +30,7 @@ class Animal(object):
30
然后,在创建实例的时候,传入参数:
31
32
```python
33
->>> animal = Aniaml('dog1') # 传入参数 'dog1'
+>>> animal = Animal('dog1') # 传入参数 'dog1'
34
>>> animal.name # 访问对象的 name 属性
35
'dog1'
36
```
0 commit comments