Commit 0f2b3706 by BellCodeEditor

auto save

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