如何使用泡菜來保存字典? - How can I use pickle to save a dict?

問題:

I have looked through the information that the Python docs give, but I'm still a little confused.我已經查看了Python 文檔提供的信息,但我仍然有點困惑。 Could somebody post sample code that would write a new file then use pickle to dump a dictionary into it?有人可以發佈示例代碼來編寫一個新文件然後使用pickle將字典轉儲到其中嗎?


解決方案:

參考一: https://en.stackoom.com/question/l4RB
參考二: https://stackoom.com/question/l4RB
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章