結果 : find length of matrix python