結果 : how to turn matrix into vector python