Commit d592440a by BellCodeEditor

save project

parent d6c81a0f
Showing with 25 additions and 0 deletions
class Hero:
def __init__(self,name,hp,attack):
self.level=1
self.name=name
self.HP=HP
self.attack=attack
def wssb(self):
self.level=self.level+=1
self.HP
self.attack+2
yase=Hero('yase',300,20)
hy=Hero('hy',250,23)
k=Hero('K',5600,199)
yg=hert('yg'120,25)
dfy=Hero('dfy'800,18)
print(yase.attack)
print(hy.attack)
print(k.attack)
print(yg.attack)
print(dfy.attack)
Hero.wssb()
\ 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