01 2015 档案

摘要:一 Python中一切都是对象。既然python所有的一切都是对象,那么从另一个角度去对待python中的面向对象---没有传统的类型,只有对象,类型也是对象。那么又怎么去判断哪个是类型哪个是实在的对象呢?python中有两类对象,一类就是type,一类就是实例对象,通过'class'语句来创建类型... 阅读全文
posted @ 2015-01-19 12:42 blue_whale
摘要:原文地址:http://stackoverflow.com/questions/674304/pythons-use-of-new-and-initUse__new__when you need to control the creation of a new instance. Use__init... 阅读全文
posted @ 2015-01-15 11:13 blue_whale