📜  保存 python dic - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:29.838000             🧑  作者: Mango

代码示例1
import pickledict = {'Python' : '.py', 'C++' : '.cpp', 'Java' : '.java'}f = open("file.pkl","wb")pickle.dump(dict,f)f.close()