with open(os.path.join(CIFAR_DIR,"data_batch_1"),"rb")as f:
data = pickle.load(f)
print(type(data))
![图片描述](http://img1.sycdn.imooc.com//szimg/5cb987c60001b87808240530.jpg)
请问这什么原因?怎解决?
def load_data(filename):
"""read data from data file."""
with open(filename, 'rb') as f:
data = pickle.load(f, encoding='bytes')
return data[b'data'], data[b'labels']