Commit ddc2bc36 by BellCodeEditor

auto save

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