Commit d856e759 by BellCodeEditor

save project

parent d6c81a0f
Showing with 14 additions and 0 deletions
class yu:
def __init__(self,HP,attack,name):
self.LV=15
self.HP=HP
self.attack=attack
self.name=name
xianyu=yu(500,100,"xianyu")
def LVUP():
xianyu.LV+=1
xianyu.HP+=50
xianyu.attack+=520
LVUP()
print(xianyu.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