def isFunType(obj): '''??obj????????lambda?? ''' return isinstance(obj,types.MethodType) or isinstance(obj,types.LambdaType)