Commit f8a5d814 by BellCodeEditor

auto save

parent 37fd7613
Showing with 6 additions and 2 deletions
......@@ -12,9 +12,13 @@ class Dog: # 狗类
class Husky(Dog): # 哈士奇类
def __init__(self,food,eze,head,ears):
super(). __init__(name)
elf.skin = "red"
super(). __init__(name)
self.hp=200
self.hero_type=hero_type
print("角色",self.name,"已经创建成功,他的英雄类型是",self.hero_type)
print("他的血量,攻击值分别是",self.hp,self.attack)
coco = Husky()
print(coco.skin)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment