Commit b5404796 by BellCodeEditor

save project

parent f7e15311
Showing with 13 additions and 0 deletions
...@@ -27,3 +27,15 @@ class Husky(dog): ...@@ -27,3 +27,15 @@ class Husky(dog):
def __init__(self) def __init__(self)
super().__init__() super().__init__()
self.skin="black" self.skin="black"
class player(hero):
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+"",self.hero_type)
print("",self.level,self.hp,self.attack)
houyi=player("","")
yase=hero("")
\ 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