Commit 1a985b88 by BellCodeEditor

save project

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