python3 使用torch.load 读取文件报UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0x8c in position 16: ordinal not in range(128) 只需要在读取文件时指定编码: fo = open(file,"rb") checkpoint = torch.load(fo,encoding = "iso-8859-1")