Commit 124fad68 by BellCodeEditor

auto save

parent 21667d8e
Showing with 2 additions and 26 deletions
import random
class Hero(object): class Hero(object):
def __init__(self, name): def __init__(self, name):
self.name = name self.name = name
...@@ -43,28 +42,4 @@ print("-"*30) ...@@ -43,28 +42,4 @@ print("-"*30)
print("战斗开始") print("战斗开始")
while True: while True:
print("-"*30) print("-"*30)
x=input("请输入战斗方式") x=input("请输入战斗方式")
if x=="q": \ No newline at end of file
break
elif x=="1":
houyi.combat(yase)
elif x=="2":
houyi.cure()
else:
print("重新输")
continue
num=random.randint(0,3)
if x=="q":
break
elif num=="1":
yase.combat(houyi)
elif num=="2":
yase.cure()
else:
print("重新输")
continue
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