Commit 76b5228d by BellCodeEditor

save project

parent dd49cee4
Showing with 7 additions and 1 deletions
...@@ -42,5 +42,10 @@ print(" 战斗开始") ...@@ -42,5 +42,10 @@ print(" 战斗开始")
choice = input('请释放英雄技能(1:攻击,2:治疗):') choice = input('请释放英雄技能(1:攻击,2:治疗):')
if choice=='1': if choice=='1':
houyi.combat(yase) houyi.combat(yase)
else: elif choice=='2':
houyi.cure() houyi.cure()
elif choice=='q' or choice=='Q':
print('战斗结束')
exit()
else:
peint('输入错误,重新输入')
\ 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