python 3.x版本中,导入cPickle出现无法导入的情况:
cPickle在python 2.x存在,在python 3.x中已经更名为pickle
如果想导入,可以采取:
import _pickle/pickle as cPickle
python3中采取
import pickle
更为方便
python 3.x版本中,导入cPickle出现无法导入的情况:
cPickle在python 2.x存在,在python 3.x中已经更名为pickle
如果想导入,可以采取:
import _pickle/pickle as cPickle
python3中采取
import pickle
更为方便