Commit d8959f4e by BellCodeEditor

auto save

parent f5acf615
Showing with 3 additions and 1 deletions
...@@ -13,10 +13,12 @@ class Hero(object): ...@@ -13,10 +13,12 @@ class Hero(object):
if enemy.hp > 0: if enemy.hp > 0:
info3 = enemy.name + "还剩下" + str(enemy.hp) + "个母亲" info3 = enemy.name + "还剩下" + str(enemy.hp) + "个母亲"
info = info1 + info2 + info3 info = info1 + info2 + info3
print("=" * 30)
print(info) print(info)
else: else:
info3 = enemy.name + "母亲没了" info3 = enemy.name + "母亲没了," + self.name + "非常开心呢"
info = info1 + info2 + info3 info = info1 + info2 + info3
print("=" * 30)
print(info) print(info)
exit() exit()
yase = Hero("垭瑟") yase = 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