Commit 223998d4 by BellCodeEditor

save project

parent a56519c2
Showing with 1 additions and 2 deletions
...@@ -24,10 +24,9 @@ class Hero: # 英雄类 ...@@ -24,10 +24,9 @@ class Hero: # 英雄类
class Player(Hero): # 玩家英雄 class Player(Hero): # 玩家英雄
def __init__(self,name): def __init__(self,name):
self.level = 1 super().__init__(name)
self.hp = 500 self.hp = 500
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