Commit 83f39183 by BellCodeEditor

save project

parent a7606d82
Showing with 18 additions and 2 deletions
class hero: class hero:
def __init__(self,name,hp,attack): def __init__(self,name,hp,attack):
self.leve1=100000000000000000000000000000000000000000 self.leve1=1
self.name=name self.name=name
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
def upgrade(self):
self.leve1=self.leve1+1
self.attack=self.attack+1
self.hp=self.hp+1
scp173=hero('scp173',9999999999999999999999999999999999999999999999999999999999999999999999999,999999999999999999999999999999999999999999999999999999999) scp173=hero('scp173',9999999999999999999999999999999999999999999999999999999999999999999999999,999999999999999999999999999999999999999999999999999999999)
scp096=hero('scp096',2100000000,99999999999999999999999999999999999999999999999999999999999999999999999999999999999999) scp096=hero('scp096',2100000000,99999999999999999999999999999999999999999999999999999999999999999999999999999999999999)
print(scp096.hp) print(scp096.hp)
scp173.upgrade()
scp096.upgrade()
print(scp173.hp)
print(scp096.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