結果 : convert nested list to matrix python