Commit e23a880b by BellCodeEditor

save project

parent 79c92b15
Showing with 10 additions and 3 deletions
class aaa():
def __init__(self,name,hp,attack):
def __init__(self,name,level,hp,attack):
self.name=name
self.level=level
self.hp=hp
self.attack=attack
y=aaa("y",10,10)
print(y.hp)
inksans=aaa("inksans",1,2000000000000000,1000000000000000)
def up():
inksans.level=inksans.level+10
inksans.hp=inksans.hp+1000
inksans.attack=inksans.attack+10000000
up()
print()
\ 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