Commit 7a8d7325 by BellCodeEditor

save project

parent c460219e
Showing with 7 additions and 3 deletions
...@@ -27,7 +27,11 @@ class Player(): # 玩家英雄 ...@@ -27,7 +27,11 @@ class Player(): # 玩家英雄
supper(),if __init__(name) supper(),if __init__(name)
self.hp=900 self.hp=900
self.attack=90 self.attack=90
self.hero__type=hero.type
print('角色'+self.name+'无',self.hero__type)
print('等,血,攻',self.level,self.hp,self.attack)
houyi= Player("后羿")
yase=Hero('亚')
player = Player("后羿")
print("玩家的血量值为:",player.hp)
print("玩家的攻击力为:",player.attack)
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