結果 : length of matrix in python