Commit ae661013 by BellCodeEditor

save project

parent e1c401e9
Showing with 7 additions and 7 deletions
...@@ -45,20 +45,20 @@ print(' 战斗开始') ...@@ -45,20 +45,20 @@ print(' 战斗开始')
while True: while True:
print("-" * 30) print("-" * 30)
choice = input("技能(1攻击/2治疗):") choice = input("技能(1攻击/2治疗):")
if choice=="q": if choice=="q":
print("over") print("over")
break break
elif choice=="1": elif choice=="1":
yase.combat(houyi) yase.combat(houyi)
elif choice=="2": elif choice=="2":
yase.cure() yase.cure()
else : else :
print("重输") print("重输")
continue continue
s=random.ranint(1,3) s=random.ranint(1,3)
if s == 1: if s == 1:
houyi.cure() houyi.cure()
else: else:
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