Commit 91475d5b by BellCodeEditor

save project

parent 602cfd2d
Showing with 4 additions and 3 deletions
......@@ -24,8 +24,9 @@ class Player(Hero):
super().__init__(name)
self.hp = 200
self.attack = 50
yase = Hero("垭瑟")
houyi= Player("后羿")
print("角色:"+self.name+"创建成功")
print("角色的等级,血量,攻击力为:"+str(self.level)+" "+str(self.hp)+" "+str(self.attack) )
yase = Hero("后羿")
houyi= Player("亚瑟")
yase.combat(houyi)
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