Commit 3955da3b by BellCodeEditor

save project

parent e03a6e1f
Showing with 5 additions and 4 deletions
class Hero: class Hero:
def __init__(self): def __init__(self,name,hp,attack):
self.levels=1 self.levels=1
self.hp=300 self.hp=hp
self.attack=20 self.name=name
yase=Hero() self.attack=attack
yase=Hero('yase',3000000000,0)
print(yase.hp) print(yase.hp)
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