Commit e9561dc9 by BellCodeEditor

save project

parent 65777325
Showing with 4 additions and 0 deletions
...@@ -22,6 +22,10 @@ class Player (Hero): ...@@ -22,6 +22,10 @@ class Player (Hero):
super().__init__(name) super().__init__(name)
self.hp = 200 self.hp = 200
self.attack = 45 self.attack = 45
self.Hero name = Hero name
print("")
print("请打印英雄的名字 血量 伤害"self.Hero,self.hp,self.attack)
yase = Hero("垭瑟") yase = Hero("垭瑟")
houyi = Player("后羿") houyi = Player("后羿")
......
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