Commit daa917a9 by BellCodeEditor

save project

parent 65ec7a51
Showing with 8 additions and 9 deletions
......@@ -4,14 +4,13 @@ class Hero:
self.name=name
self.hp=hp
self.attack=attack
def zyx(self):
self.level=self.level+1
self.hp=self.hp+10000000000000000000000000000000000000000009999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
self.attack= self.attack+100000000000000000000000000000000099999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
yase=Hero("yase",300000000000,9999999999)
houyi=Hero("houyi",77777777777777,999999999)
# print(yase.hp)
# print(houyi.hp)
def zyx():
yase.level=yase.level+1
yase.hp=yase.hp+10000000000000000000000000000000000000000009999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
yase.attack= yase.attack+100000000000000000000000000000000099999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
zyx()
print(yase.attack)
yase.zyx()
# print(yase.hp)
# print(houyi.hp)
print(yase.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