Commit 2669fa58 by BellCodeEditor

save project

parent a43183c9
Showing with 5 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
...@@ -47,4 +48,6 @@ while True: ...@@ -47,4 +48,6 @@ while True:
elif choices =='2': elif choices =='2':
houyi.cure() houyi.cure()
else: else:
print('输入错误,请重新输入') print('输入错误,请重新输入1,2或者q')
\ No newline at end of file continue
num=random.randint(1,3)
\ 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