Commit 653e0a29 by BellCodeEditor

save project

parent 12ce2316
Showing with 10 additions and 16 deletions
......@@ -19,19 +19,14 @@ class Hero(object):
info=info1+info2+info3
print(info)
exit()
class player(Hero):
def __init__(self,name,hero_type):
super().__init__(name)
self.hp=300
self.attack=114514
self.hero_type=hero_type
print("角色"=self.name+"创建成功,英雄类型"self.hero_type)
print("当前等级.血量.攻击力分别为",self.level,self.hp,self.attack)
houyi = player("后羿","吸血泵")
print(houyi.hp)
yase = Hero("垭瑟")
houyi= Hero("后羿")
yase.combat(houyi)
yase.combat(houyi)
yase.combat(houyi)
yase.combat(houyi)
yase.combat(houyi)
yase.combat(houyi)
yase.combat(houyi)
yase.combat(houyi)
yase.combat(houyi)
yase.combat(houyi)
yase.combat(houyi)
yase.combat(houyi)
\ 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