Commit b949b556 by BellCodeEditor

save project

parent 07ef77a4
Showing with 6 additions and 0 deletions
......@@ -34,6 +34,12 @@ class Player(Hero):
self.hero_type = hero_type
print('角色'+self.name+'已经创建','英雄类型为'+self.hero_type)
print('当前等级,血量,攻击力为'+self.name + self.attack)
def cure(self):
hp = random.randint(0,3)
player = Player('后羿','射手')
yase = Hero('亚瑟')
print('-'*30)
......
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