Commit b2dea249 by BellCodeEditor

save project

parent bcc22b78
Showing with 3 additions and 2 deletions
...@@ -15,9 +15,10 @@ class Hero(object): ...@@ -15,9 +15,10 @@ class Hero(object):
info=info1+info2+info3 info=info1+info2+info3
print(info) print(info)
else: else:
info3=fight.name+'还剩下'+str(fight.hp)+'血量' info3=fight.name+'已阵亡'
info=info1+info2+info3
print(info) print(info)
print(fight.name+'已阵亡')
yase = Hero("垭瑟") yase = Hero("垭瑟")
houyi= Hero("后羿") houyi= Hero("后羿")
yase.combat(houyi) 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