多维 array 转成一维 python

import numpy as np
a = np.array([[1, 2, 3], [4, 5, 6]], float)
a.flatten()

评论