谢邀,在python2中,如果定义类时继承了object,那么实例化后对象的type就是该类. >>> class Apple(object): pass ... >>> red_apple = Apple() >>> type(red_apple) ...
確定! 回上一頁