Commit 0750f12d by BellCodeEditor

save project

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