Commit c87ba377 by BellCodeEditor

save project

parent c18949b6
Showing with 11 additions and 2 deletions
...@@ -53,4 +53,13 @@ yase = Hero("垭瑟") ...@@ -53,4 +53,13 @@ yase = Hero("垭瑟")
while True: while True:
print("-"*30) print("-"*30)
a=input("请输入技能(1攻击,2治疗)") a=input("请输入技能(1攻击,2治疗)")
if a=="q":
\ No newline at end of file print("游戏结束")
break
elif a=="1":
houyi.combat("垭瑟")
elif a=="2":
houyi.cure()
else:
print("请重新输入1或2")
\ 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