Commit 4d899b57 by BellCodeEditor

save project

parent 84ab58a6
Showing with 8 additions and 2 deletions
import random
class Hero(object): class Hero(object):
def __init__(self, name): def __init__(self, name):
self.name = name self.name = name
...@@ -50,4 +51,9 @@ while True: ...@@ -50,4 +51,9 @@ while True:
elif a=="q": elif a=="q":
print("游戏借宿") print("游戏借宿")
else: else:
print("请重新输入") print("请重新输入")
\ No newline at end of file b=random.randint(1,2)
if b==1:
yase.combat(houyi)
else:
yase.cure()
\ 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