Commit e7132341 by BellCodeEditor

save project

parent 295aefa2
Showing with 2 additions and 4 deletions
...@@ -26,6 +26,5 @@ class Player(Hero): # 玩家英雄 ...@@ -26,6 +26,5 @@ class Player(Hero): # 玩家英雄
self.hero_type=hero_type self.hero_type=hero_type
print("军"+self.name+"成功",self.hero_type) print("军"+self.name+"成功",self.hero_type)
print("等,血,攻"+self.level,self.hp,self.attack) print("等,血,攻"+self.level,self.hp,self.attack)
player = Player("后羿") player = Player("后羿","射")
print("玩家的血量值为:",player.hp) yase=Hero("亚")
print("玩家的攻击力为:",player.attack)
\ 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