Commit c768358e by BellCodeEditor

save project

parent 3d2dfd4e
Showing with 14 additions and 0 deletions
class Hero:
def__init__(self,name,hp,levelp,attack):
self.name=name
self.hp=hp
self.levelp=levelp
self.attack=attack
def.upqrade(self):
self.hp+=10
self.levelp+=1
self.attack+=100
yase=HeroI("yase",100,1,1000)
yase.upqrade()
print(yase,hp)
print(yase,name)
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