Commit 3b3f72a7 by BellCodeEditor

save project

parent d13edd8e
Showing with 7 additions and 3 deletions
import random.ran import random
class Hero(object): class Hero(object):
def __init__(self, name): def __init__(self, name):
self.name = name self.name = name
...@@ -54,4 +53,8 @@ while True: ...@@ -54,4 +53,8 @@ while True:
else: else:
print("输入错误,请重新输入") print("输入错误,请重新输入")
continue continue
sum = random.randint(1,3)
if sum == 1:
yase.combat((houyi))
else:
yase.cure()
\ 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