__str__和__repr__

改变对象的字符串显示__str__,__repr__

自定义格式化字符串__format__

__del__:对象实例化之后回收实例化,节省内存

 

相关文章: