Commit 7aa7c271 by BellCodeEditor

save project

parent d762109f
Showing with 2 additions and 2 deletions
...@@ -40,7 +40,6 @@ houyi = Player("射手", "后羿") ...@@ -40,7 +40,6 @@ houyi = Player("射手", "后羿")
yase = Hero("垭瑟") yase = Hero("垭瑟")
print("-"*30) print("-"*30)
print(" 战斗开始") print(" 战斗开始")
import random
while True: while True:
print("-"*30) print("-"*30)
choice=input("请选择释放英雄技能(1攻击/2治疗):") choice=input("请选择释放英雄技能(1攻击/2治疗):")
...@@ -53,7 +52,8 @@ while True: ...@@ -53,7 +52,8 @@ while True:
houyi.cure() houyi.cure()
else: else:
print("请重新输入1或2") print("请重新输入1或2")
continue continue
import random
num=random.randint(1,3) num=random.randint(1,3)
if num==1: if num==1:
yase.cure() yase.cure()
......
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