1、 基本语法isinstance(object, classinfo)
2、clas衡痕贤伎sinfo 处可以是 a class, type, or tuple of classes and types,如果是 tupl髫潋啜缅e,则满足 tuple 中的任何一个即返回 True2. 字符串的类型判断。字符串,分为 str 和 unicode,二者均继承自 basestring
3、 数亨蚂擤缚字的类型判断数字分为 int 和 float,暂未发现二者共同的有效父类。可以用 (int, float) tuple 来判断是否为数字(int 或 float)