Commit ce844df5 by BellCodeEditor

auto save

parent aa4beb24
Showing with 3 additions and 3 deletions
......@@ -29,10 +29,10 @@ class Player(Hero): # 玩家英雄
self.attack=100000
self.hero_type=hero_type
print("创建了一个英雄"+self.name,+"英雄类型为"+self.hero_type)
print("等级为"+self.level+"血量"+self.hp+"攻击为"+self.attack)
print("等级为"+str(self.level)+"血量"+str(self.hp)+"攻击为"+str(self.attack))
player = Player(Hero)
player.combat('后羿','射手')
player = Player('后羿','射手')
player.combat('亚瑟')
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