Commit 430ec3e2 by BellCodeEditor

auto save

parent b151ca95
Showing with 4 additions and 4 deletions
improt random import random
class Hero(object): class Hero(object):
def __init__(self, name): def __init__(self, name):
self.name = name self.name = name
...@@ -47,11 +47,11 @@ print("-"*100) ...@@ -47,11 +47,11 @@ print("-"*100)
print(" 游戏开始") print(" 游戏开始")
while True: while True:
choice=input('请选择释放英雄技能(1攻击/2治疗):') choice=input('请选择释放英雄技能(1攻击/2治疗):')
if choice=="1" if choice == "1":
houyi.combat(yase) houyi.combat(yase)
elif choice=="2" elif choice=="2":
houyi.cure() houyi.cure()
elif choice=="q" elif choice=="q":
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