Commit 5c234bca by BellCodeEditor

save project

parent 22354288
Showing with 26 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
def sg(a):
a.lv=a.lv+1
a.hp=a.hp+100
a.att=a.att+50
a.det=a.det+50
a.con=a.con+100
mk=c("mk",0,100,50,100,50)
flkl=c("flkl",0,100,100,50,50)
print(flkl.hp)
print(mk.hp)
mk.sg()
mk.sg()
print(mk.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