Commit 91475d5b by BellCodeEditor

save project

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