Commit 1a985b88 by BellCodeEditor

save project

parent bf5bfe6d
Showing with 12 additions and 7 deletions
class Hero:
def __init__(self):
self.level=999999999999999999999999999999999999999999999999999999999999999999999
self.hp=999999999999999999999999999999999999999999999999999999999999999999999999
self.attack=99999999999999999999999999999999999999999999999999999999999999999999
yase=Hero()
print(yase.hp)
\ No newline at end of file
def __init__(self,hp,attack):
self.level=1
self.hp=hp
self.attack=attack
yase=Hero(99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999,9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)
def upgrade():
yase.level=yase.level+1
yase.hp=yase.hp+1
yase.attack=yase.attack+1
upgrade()
upgrade()
print(yase.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