Commit 6a502542 by BellCodeEditor

save project

parent 86b7293f
Showing with 14 additions and 0 deletions
import random
class Hero(object): class Hero(object):
def __init__(self, name): def __init__(self, name):
self.name = name self.name = name
...@@ -45,3 +46,15 @@ while True: ...@@ -45,3 +46,15 @@ while True:
if www==q: if www==q:
print("sb") print("sb")
break break
if www==1:
houyi.combat(yase)
if www==2:
houyi.cure()
else:
print("请重新输入")
continue
qqq=random.randint(1,3)
if qqq==1:
yase.cure()
else:
yase.combat(houyi)
\ 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