# 代码1和代码2得到的结果是一样的,功能一致
# features:(8325,62,5)
# 代码1
feat_array_temp = np.transpose(features, (2, 0, 1)) # 5, 8325, 62 ndarray
# 代码2
feat_array_temp2 = []
for i in range(5):
feat_array_temp2.append(features[:, :, i])
feat_array_temp2 = np.array(feat_array_temp2) # 5, 8325, 62 ndarray
# 最后的结果:feat_array_temp2==feat_array_temp
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http://www.e1idc.net