Commit 0f9363ae by BellCodeEditor

save project

parent 72e4994a
Showing with 6 additions and 0 deletions
...@@ -39,3 +39,9 @@ class Player(Hero): # 玩家英雄 ...@@ -39,3 +39,9 @@ class Player(Hero): # 玩家英雄
print("等级:",self.level,"血量:",self.hp,"攻击力:",self.attack,end="") print("等级:",self.level,"血量:",self.hp,"攻击力:",self.attack,end="")
houyi = Player("后羿") houyi = Player("后羿")
yase = Hero("亚瑟") yase = Hero("亚瑟")
print("-"*30)
print(" 开始战斗")
while True:
print("-"*30)
print("请选择释放英雄技能(1攻击/2治疗):")
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