Commit f4833b8c by BellCodeEditor

save project

parent 1e18ff38
Showing with 9 additions and 2 deletions
import random
class Hero(object):
def __init__(self, name):
self.name = name
......@@ -46,4 +47,10 @@ print("-",30)
print( "开打")
while True:
print("-",30)
choice=input("请选择一技能或二技能:")
\ No newline at end of file
choice=input("请选择一技能或二技能:")
if choice=="q":
exit()
elif choice=="1":
self.combat
elif choice=="2":
self.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