import pickle#序列化
dic={'name':'afs'}
print(type(dic))#<class 'dict'>
j=pickle.dumps(dic)#pickle处理成字节
print(type(j))#<class 'bytes'>字节
转载于:https://www.cnblogs.com/wfl9310/p/9025708.html
import pickle#序列化
dic={'name':'afs'}
print(type(dic))#<class 'dict'>
j=pickle.dumps(dic)#pickle处理成字节
print(type(j))#<class 'bytes'>字节
转载于:https://www.cnblogs.com/wfl9310/p/9025708.html