there is a list of this type:
[[585, 671, 2, 588, 143, 144, 1394, 880, 411, 743, 1106, 472, 31, 1398, 33, 34, 1398, 36, 37, 38, 613, 614, 588, 143, 144, 1394, 880, 411, 743, 1106, 472, 31, 1398, 33, 34, 1398, 36, 37, 38], [410, 40, 743, 1403, 43, 917, 1106, 46, 285, 286, 1398, 467, 342, 52, 53, 54, 55]...` Как преобразовать этот list в list из матриц такого вида: [[0, 0, 2, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1], [1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1]... where each matrix is the matrix of each list element of the first list
This is a list in which the list elements are also
here is the link to the code: http://pastebin.com/R66xCKAw