Commit 9f5a47a8 by BellCodeEditor

auto save

parent 545535e9
Showing with 25 additions and 0 deletions
class Hero:
def __init__(ziji,maxup,name,hp,attack):
ziji.level=1
ziji.name=name
ziji.hp=hp
ziji.attack=attack
ys=Hero('ys',300,20)
hy=Hero('hy',250,23)
sq=Hero('sq',1000000000,23000000000)
def upys():
ys.level+=1
ys.hp+=50
ys.attack+=4
upys()
def uphy():
hy.level+=1
hy.hp+=50
hy.attack+=4
uphy()
def upsq():
sq.level+=1
sq.hp+=50
sq.attack+=4
upsq()
\ No newline at end of file
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