Commit 87b7548d by BellCodeEditor

save project

parent 33b1972e
Showing with 2 additions and 2 deletions
...@@ -25,7 +25,7 @@ class Hero(object): ...@@ -25,7 +25,7 @@ class Hero(object):
info = info1+info2+info3 info = info1+info2+info3
print(info) print(info)
else: else:
info3 = enemy.name+"阵亡,游戏失败" info3 = enemy.name+"阵亡,游戏结束"
info = info1+info2+info3 info = info1+info2+info3
print(info) print(info)
exit() exit()
...@@ -71,7 +71,7 @@ while True: ...@@ -71,7 +71,7 @@ while True:
print('-'*30) print('-'*30)
choice=input('请选择技能:(1.攻击 2.治疗):') choice=input('请选择技能:(1.攻击 2.治疗):')
if choice=='z': if choice=='z':
print('游戏胜利!') print('游戏结束!')
exit() exit()
elif choice=='1': elif choice=='1':
houyi.combat(yase) houyi.combat(yase)
......
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