Commit e8a295d9 by BellCodeEditor

save project

parent 4bf96997
Showing with 2 additions and 2 deletions
...@@ -20,10 +20,10 @@ class Hero(object): ...@@ -20,10 +20,10 @@ class Hero(object):
print(info) # 攻击 print(info) # 攻击
class Player(Hero): class Player(Hero):
def __init__(self,name): def __init__(self,name):
self.level = 1 super().__init__(name)
self.hp = 200 self.hp = 200
self.attack = 50 self.attack = 50
self.name = name
yase = Hero("垭瑟") yase = Hero("垭瑟")
houyi= Player("后羿") houyi= Player("后羿")
......
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