import _pickle as pickle
if __name__ == '__main__':
fr = open("***.pkl",'rb') # open的参数是pkl文件的路径
inf = pickle.load(fr) # 读取pkl文件的内容
print(inf)
fr.close()
参考链接:https://blog.csdn.net/u013093426/article/details/87867000
import _pickle as pickle
if __name__ == '__main__':
fr = open("***.pkl",'rb') # open的参数是pkl文件的路径
inf = pickle.load(fr) # 读取pkl文件的内容
print(inf)
fr.close()
参考链接:https://blog.csdn.net/u013093426/article/details/87867000