python pickle module

417 查看

You may use pickle module.

import pickle

your code

pickle.dump(lda,open(filename,'w'))

you may load it back again

lda_copy = pickle.load(file(filename))


2018 - 知识虫 - 我的知识库 渝ICP备16002641号-2

渝公网安备 50010702501581号