Commit be90a4c7 by BellCodeEditor

save project

parent 0d0dd912
Showing with 2 additions and 1 deletions
......@@ -12,12 +12,13 @@ class Hero(object):
info2="造成"+str(self.attack)+"点伤害"
if enemy.hp > 0:
info3 = enemy.name+"剩于"+str(enemy.hp)+"血"
info = ninfo1+ info2 + info3
info = info1+ info2 + info3
print(info)
else:
info3 = enemy.name+"阵亡,结束"
info = ninfo1+ info2 + info3
print(info)
exit()
yase = Hero("垭瑟")
houyi= Hero("后羿")
......
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