利用pytorch加载mnist数据集的代码如下 import torchvision import torchvision.transforms as transforms from torch.utils.data import DataLoader train_data = torchvision.datasets.MNIST( root='./mnist/', train=True, # this is training data transform=torchvision.transf