Commit cd77abdd by BellCodeEditor

save project

parent dc62fb18
Showing with 6 additions and 2 deletions
while True:
print("-"*30)
a=input("请选择技能:1击毙你/2吃口药")
\ No newline at end of file
......@@ -48,10 +48,10 @@ class Player(Hero):
houyi = Player("射手", "后羿")
yase = Hero("垭瑟")
while True:
if int(a)==1:while True:
print('-'*30)
a=input("请选择技能:1攻击/2治疗")
if int(a)==1:
houyi.combat(yase)
elif int(a)==2:
houyi.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