Commit 21196a6b by BellCodeEditor

save project

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