Commit 461ad7af by BellCodeEditor

save project

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