Commit 21196a6b by BellCodeEditor

save project

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