Commit 36617377 by BellCodeEditor

save project

parent a1137cd5
Showing with 1 additions and 1 deletions
...@@ -30,7 +30,7 @@ class Player(Hero): # 玩家英雄 ...@@ -30,7 +30,7 @@ class Player(Hero): # 玩家英雄
self.max_hp = self.hp self.max_hp = self.hp
print("英雄:"+self.name+".创建成功,"+"\n英雄类型:"+self.herotype+"\n攻击力:"+str(self.attack)) print("英雄:"+self.name+".创建成功,"+"\n英雄类型:"+self.herotype+"\n攻击力:"+str(self.attack))
yase = Hero("亚瑟","坦克") yase = Hero("亚瑟",)
houyi = Man("后羿","射手") houyi = Man("后羿","射手")
print("玩家的血量值为:",player.hp) print("玩家的血量值为:",player.hp)
print("玩家的攻击力为:",player.attack) 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