Commit 0750f12d by BellCodeEditor

save project

parent 0929d369
Showing with 8 additions and 7 deletions
class Hero:
def __init__(self):
self.HP=999999999
self.lv=999999999
self.Attack=999999999
SB=Hero()
print(SB.HP)
\ No newline at end of file
def __init__(self,name,hp,lv,att):
self.Name=name
self.HP=hp
self.Lv=lv
self.Attack=att
SB=Hero("a",0,0,0)
print(SB.name,hp,lv,att)
\ 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