python中的内建工厂函数,
比如int(), float(), map(), type(), list() 等python2.2前都是函数.
2.2之后实际上是"类对象", 顾名思义类对象产生类实例, 它们就象工厂不断制造出产品一样.
int() float() long() complex()
str() unicode() basestring()
list() tuple()
type()
其他工厂函数:
dic()
bool()
set(), frozenset()
object()
classmethod()
staticmethod()
super()
property()
file()
python中类定义完毕后产生类对象, 类对象才能产生实例对象,