1. type(object) -> the object's type返回的是object的类型,即对象的类定义例如:用元类动态生成子类metaclass = type(father) # 获取father的元类subclass = metaclass(name, (father,), attrs)type(name, bases, dict) -> a new type返回一个类的定义