Commit 6c2a9e4c by BellCodeEditor

save project

parent 47bcd220
Showing with 1 additions and 1 deletions
......@@ -37,7 +37,7 @@ class Player(Hero): # 玩家英雄
print("当前等级、血量、攻击力分别为:",self.level,self.hp,self.attack)
后羿 = Player("射手","后羿")
垭瑟 = Hero("战士","垭瑟")
垭瑟 = Hero("垭瑟")
print("玩家的血量值为:",后羿.hp)
print("玩家的攻击力为:",后羿.attack)
后羿.combat(垭瑟)
......
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