Commit 0e28ce21 by BellCodeEditor

save project

parent 7a649cc6
Showing with 10 additions and 0 deletions
import random
class Hero(object): class Hero(object):
def __init__(self, name): def __init__(self, name):
self.name = name self.name = name
...@@ -48,4 +49,12 @@ while True: ...@@ -48,4 +49,12 @@ while True:
elif a==str(2): elif a==str(2):
houyi.cure() houyi.cure()
else: else:
print('请重新输入')
print('-'*30)
b=
if a==str(1):
yase.combat(houyi)
elif a==str(2):
yase.cure()
else:
print('请重新输入') print('请重新输入')
\ 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