Commit e8905a89 by BellCodeEditor

save project

parent 1210ba0f
Showing with 11 additions and 2 deletions
return
# 英雄角色类
class Hero(object):
def __init__(self, name):
......@@ -29,4 +30,13 @@ class Player(Hero):
yase = Hero("垭瑟")
houyi= Hero("后羿")
yase.combat(houyi)
\ No newline at end of file
yase.combat(houyi)
num=input('')
if num=='q':
print('')
break
elif num=='1':
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