python将循环遍历的数追加到列表
list11=[]for i in range(len(train_dataset)):#print(train_dataset[i])#y_train= train_dataset[i]list11.append(train_dataset[i])#sio.savemat('train.mat',{'y_train':y_train})#print(list11)xx1_train=np.arr
·
list11=[]
for i in range(len(train_dataset)):
#print(train_dataset[i])
#y_train= train_dataset[i]
list11.append(train_dataset[i])
#sio.savemat('train.mat',{'y_train':y_train})
#print(list11)
xx1_train=np.array(list11)
print(xx1_train.shape)
更多推荐
已为社区贡献2条内容
所有评论(0)