一、分步代码 1.引入库 代码如下(示例): # coding: utf-8 import torch from torch.utils.data import DataLoader import torchvision.transforms as transforms import numpy as np import os from torch.