Commit 0f2b3706 by BellCodeEditor

auto save

parent c6e32717
Showing with 2 additions and 3 deletions
......@@ -26,11 +26,10 @@ class Hero(object):
info = info1+info2+info3
print(info)
print('你干嘛啊~~')
exit()
class Player(Hero):
def __init__(self,hero_type2,name):
def __init__(self,hero_type,name):
super().__init__(name)
self.hp = 200
self.attack = 50
......@@ -57,7 +56,7 @@ while True:
elif int(a)==2:
houyi.cure()
elif a=="q":
print(' 游戏结束')
print('游戏结束')
break
else:
print('重输!')
......
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