Commit 8d54d9d8 by BellCodeEditor

save project

parent 92ca5db7
Showing with 5 additions and 5 deletions
class hero:
def __init__(self,level,hp,attack):
self.name="yase"
self.level=1
self.hp=300
self.attack=20
def __init__(self,name,level,hp,attack):
self.name=name
self.level=level
self.hp=hp
self.attack=attack
yase=hero("yase",1,300,20)
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