Commit cf36bfd5 by BellCodeEditor

save project

parent 4addd55d
Showing with 6 additions and 5 deletions
...@@ -4,12 +4,13 @@ class Hero: ...@@ -4,12 +4,13 @@ class Hero:
self.name = name self.name = name
self.hp = hp self.hp = hp
self.attack = attack self.attack = attack
def op(self):
self.level+=1
self.attack+=9999
self.hp+=99999
wd=Hero('wd',999999999,99999999999) wd=Hero('wd',999999999,99999999999)
lj=Hero('lj',0.00001,0.0001) lj=Hero('lj',0.00001,0.0001)
def op():
wd.level+=1
wd.attack+=9999
wd.hp+=99999
op()
print(lj.attack) print(lj.attack)
print(wd.attack) print(wd.attack)
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