Commit 79aab212 by BellCodeEditor

save project

parent 8c6dcd0d
Showing with 3 additions and 2 deletions
......@@ -20,8 +20,8 @@ class Player(Hero):
super().__init__(name)
self.hp=200
self.attack=60
print("英雄的名称,血量,攻击力分别为",self.name,self.hp.self.attack)
print("英雄的名称,血量,攻击力分别为",self.name,self.hp,self.attack)
gui = Player("鬼谷子")
yase = Hero("垭瑟")
yase = Player("垭瑟")
#houyi= Hero("后羿")
yase.combat(gui)
\ No newline at end of file
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