Commit ddc2bc36 by BellCodeEditor

auto save

parent 84a5b49c
Showing with 4 additions and 2 deletions
......@@ -12,6 +12,9 @@ class Hero(object):
print('%s对%s发起攻击,造成%s点的伤害,%s还剩下%s血量'%(self.name,thief.name,self.attack,thief.name,thief.hp))
else:
print('%s已阵亡'%(a.name))
exit()
yase = Hero("垭瑟")
houyi= Hero("后羿")
yase.combat(houyi)
\ No newline at end of file
yase.combat(houyi)
for i in range(20):
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