Commit 6bd91857 by BellCodeEditor

save project

parent 52bccbf9
Showing with 5 additions and 3 deletions
class Hero(object): import random
class Hero():
def __init__(self, name): def __init__(self, name):
self.name = name self.name = name
self.level = 1 self.level = 1
...@@ -53,8 +54,8 @@ while True: ...@@ -53,8 +54,8 @@ while True:
else: else:
print("请输入1或2") print("请输入1或2")
continue continue
status = randon.randiont(1,3) status = random.randint(1,3)
if status == 1 if status == 1:
yase.cure() yase.cure()
else: else:
yase.combat(houyi) 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