Commit 04dcf809 by BellCodeEditor

save project

parent 0260fb7a
Showing with 16 additions and 0 deletions
import random
class Hero(object):
def __init__(self, name):
self.name = name
......@@ -44,3 +45,17 @@ print(" 战斗开始")
while True:
print("-"*30)
choise = input("请选择你需要的技能(1攻击/2治疗术)")
if choise == "p":
print("退出应用")
break
elif choise == "1":
houyi.combat(yase)
elif choise == "2":
houyi.cure()
else:
print("数据错误重新输入")
continue
num = random.randint(1,3)
if num == 1:
else:
\ 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