Commit adc1fa8b by BellCodeEditor

save project

parent ebe824a2
Showing with 8 additions and 5 deletions
...@@ -11,8 +11,12 @@ class Dog: # 狗类 ...@@ -11,8 +11,12 @@ class Dog: # 狗类
class Husky(Dog): # 哈士奇类 class Husky(Dog): # 哈士奇类
def __init__(self): def __init__(self,name.hero_type):
?? super(player,self)._init_(name)
self.hp = 200
self.attack = 50
self.hero_type = hero_type
print("角色"+self.name+"chuangjian",self.hero_type)
print("dangqianden--------------------",self.level,self.hp,self.attack)
coco = Husky()
print(coco.skin)
\ No newline at end of file
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