Commit 3e407616 by BellCodeEditor

save project

parent 64b78df2
Showing with 3 additions and 4 deletions
...@@ -46,7 +46,7 @@ while True: ...@@ -46,7 +46,7 @@ while True:
print('-'*20+'游戏开始'+'-'*20) print('-'*20+'游戏开始'+'-'*20)
choice = input('请选择技能1/攻击2/恢复治疗') choice = input('请选择技能1/攻击2/恢复治疗')
if choice=='q': if choice=='q':
print('游戏结束') print('游戏结束')
break break
elif choice=='1' elif choice=='1'
houyi.combat(yase) houyi.combat(yase)
...@@ -56,5 +56,5 @@ while True: ...@@ -56,5 +56,5 @@ while True:
print('您的输入有误:') print('您的输入有误:')
continue continue
num1=random.randint(1,3) num1=random.randint(1,3)
if numk1=='1' if numk1=='1':
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