Commit 72fba8a8 by BellCodeEditor

save project

parent b84ffedc
Showing with 10 additions and 2 deletions
...@@ -4,7 +4,16 @@ class Hero: ...@@ -4,7 +4,16 @@ class Hero:
self.name=name self.name=name
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
quiet=Hero('sz',10**10**2,10) quiet=Hero('sz',10**10**2,10)
noise=Hero('clever',100,10**10*1000000000000000000) noise=Hero('clever',100,10**10*1000000000000000000)
print(quiet.hp) print(quiet.hp)
print(noise.attack) print(noise.attack)
\ No newline at end of file def a():
quiet.level+=1
quiet.hp+=50
quiet.attack+=4
a()
a()
print(quiet.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