__new__() to create it, and __init__() to customize it 类方法 实例方法

https://docs.python.org/3/reference/datamodel.html#object.__init__

 

posted @ 2016-08-28 21:38  papering  阅读(180)  评论(0编辑  收藏  举报