問題:
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