Commit dbf787ab by BellCodeEditor

save project

parent d6c81a0f
Showing with 24 additions and 0 deletions
class c:
def __init__(a,name,lv,hp,att,det,con,):
a.name=name
a.lv=lv
a.hp=hp
a.att=att
a.det=det
a.con=con
mk=c("mk",0,100,50,100,50)
flkl=c("flkl",0,100,100,50,50)
print(flkl.hp)
print(mk.hp)
def sg():
flkl.lv=flkl.lv+1
flkl.hp=flkl.hp+100
flkl.att=flkl.att+50
flkl.det=flkl.det+50
flkl.con=flkl.con+100
sg()
print(flkl.lv)
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