Commit 574e8225 by BellCodeEditor

save project

parent a9611d9f
Showing with 2 additions and 2 deletions
......@@ -24,10 +24,10 @@ class Hero: # 英雄类
class Player(Hero): # 玩家英雄
def __init__(self, name):
super(Hero.__init__(name))
super().__init__(name)
self.hp = 200;
self.attack = 100;
print(player.name + "创建成功,英雄类型为:Player")
print(self.name + "创建成功,英雄类型为:Player")
print("玩家的血量值为:",self.hp)
print("玩家的攻击力为:",self.attack)
......
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