Commit 61282325 by BellCodeEditor

save project

parent 54cb3f6f
Showing with 3 additions and 0 deletions
import time
class Hero(object):
def __init__(self, name):
self.name = name
......@@ -41,7 +42,9 @@ houyi = Player("射手", "后羿")
yase = Hero("垭瑟")
print('-' * 30 + '\n 游戏开始')
while True:
time.sleep(0.5)
print('-'*30)
time.sleep(0.5)
c = input('请选择释放英雄技能(1攻击/2治疗):')
if c == '1' or c == '攻击':
houyi.combat(yase)
......
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