摘要: 判断类与对象关系isinstance(obj, cls)判断对象obj是否是由cls类创建的#!/usr/bin/env python#-*- coding:utf-8 -*-class Foo(object): passobj = Foo()print isinstance(obj, Foo... 阅读全文
posted @ 2015-12-16 23:23 天帅 阅读(919) 评论(0) 推荐(0) 编辑