結果 : how to convert matrix to vector in python