Commit 64162d68 by BellCodeEditor

auto save

parent fe1e8c2a
Showing with 17 additions and 0 deletions
class Hero:
def __init__(self,name):
self.name = name
self.level = 1
self.hp = 250
self.attack = 40
def combat(self,enemy)
class Player(Hero):
def __init__(self,name):
super().__init__(name)
self.hp = 200
self.attack = 50
houyi = player("后羿")
\ 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