flatten n dimensional array to 1d array pythonの検索結果