Commit d9d975ff by BellCodeEditor

save project

parent 8f4f3c09
Showing with 14 additions and 21 deletions
houyi = "" class Cat:
# 英雄角色类 def __init__(self):
class Hero(object): self.f = 4
def __init__(self, name,attack): self.e = 2
self.level = 1 self.h = 1
self.hp = 250 self.ea = 2
self.attack = 999 self.s = 'black'
self.name = name def run(self)
print("阿斯顿法国红酒看来")
def combat(self,e): # 攻击 def skill(s,n):
self.hp -= e.attack print("asdfghj"+name)
info1 = self.name+'对' role = Cat()
if self.hp ==0: role.skill('df')
info3 = e.name+'还神仙'+str(e.hp) \ No newline at end of file
print()
else:
yase = Hero("垭瑟")
houyi= Hero("后羿",10)
yase.combat(houyi)
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