numpy的flat、flatten、ravel、reshape 四个函数都是对多维数组进行降维(降至一维) 使用方法: import numpy as np a = np.arange(64).reshape([4,4,4