Commit 461ad7af by BellCodeEditor

save project

parent 3378d501
Showing with 10 additions and 9 deletions
...@@ -4,11 +4,13 @@ class Hero: ...@@ -4,11 +4,13 @@ class Hero:
self.name=name self.name=name
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
yase=Hero("yase",200000000,20000000) def upgrade(self):
lsklk=Hero("lsklk",300000000,21002939) self.level+=1
print(yase.attack) self.hp+=50
print(lsklk.attack) self.attack+=4
def uprade():
yase.hp+=1 pppp=Hero("pppp",240,23)
yase.level+=100000000000000 pppp.upgrade()
yaseattack+=100000000000000000000 print("mvbgmj",pppp,level)
\ No newline at end of file print("mvbgmj",pppp,hp)
print("mvbgmj",pppp,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