Commit 97f40177 by BellCodeEditor

save project

parent 1e7a0890
Showing with 7 additions and 0 deletions
import random
class Hero: # 英雄类 class Hero: # 英雄类
def __init__(self, name): # 实例属性 def __init__(self, name): # 实例属性
self.name = name self.name = name
...@@ -50,3 +51,9 @@ while True: ...@@ -50,3 +51,9 @@ while True:
houyi.cure() houyi.cure()
else: else:
print("请重输") print("请重输")
continue
cnm=random.randint(1,3)
if cnm==1:
yase.combat(houyi)
else:
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