Could someone give me some explanation on the syntax for classes?

前端 未结 0 1594
逝去的感伤
逝去的感伤 2021-01-01 10:04

I\'m currently learning classes, and I get that the format goes like

def class1:
 def __init__(self):

but what is init and why do we need two

相关标签:
回答
  • 消灭零回复
提交回复
热议问题