Commit afc87652 by BellCodeEditor

save project

parent c980020c
Showing with 11 additions and 6 deletions
class hero: class hero:
def __init__(self): def __init__(self,name,hp,attack):
self.lever=1 self.lever=1
self.hp=300 self.name=name
self.attack=60 self.hp=hp
self.attack=attack
yase=hero('yase',300,200)
hy=hero('hy',250,150)
print(yase.attack)
print(hy.attack)
yase=hero()
print(yase.lever)
\ 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