print ("数据集张量形状:", X_train_image.shape) #用shape方法显示张量的形状 print ("第一个数据样本:\n", X_train_image[0]) #注意Python的索引是从0开始的