Commit b8bba673 by BellCodeEditor

auto save

parent fba3f673
Showing with 7 additions and 1 deletions
......@@ -16,7 +16,12 @@ class Hero(object):
else:
info3 = enemy.name + '阵亡'
print(info3)
exit()
class Player(Hero):
def __init__(self,name,hero_type):
yase = Hero("垭瑟")
houyi= Hero("后羿")
houyi= Player("后羿")
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