Commit 34671859 by BellCodeEditor

save project

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