Commit 5e226eee by BellCodeEditor

save project

parent dd26824a
Showing with 3 additions and 2 deletions
......@@ -24,14 +24,15 @@ class Hero: # 英雄类
class Player(Hero): # 玩家英雄
def __init__(self,name,hero_):
super.__init__(name)
super().__init__(name)
self.hp=9999999999999999999999999999999999999999
self.attack=1111111
self.hero_=hero_
print("创建"+self.name+"成功")
print("玩家的血量值,攻击力为:",self.hp,self.attack)
player = Player("后羿")
player = Player("后羿",'sheshou')
print("玩家的血量值为:",player.hp)
print("玩家的攻击力为:",player.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