python中的构造函数

python中构造函数可以这样写

class classname():
    def ——init——(self):
#            构造函数函数体

 

转载于:https://www.cnblogs.com/begoogatprogram/p/4649076.html

你可能感兴趣的:(python)