概述
import shelve dict = shelve.open("Sample.db") # insert some data into sample.db dict = { "foo" : "bar"} #Now I want to clean entire shelve file to re-insert the data from begining.
dict.clear()
总结
以上是编程之家为你收集整理的如何在python中将搁置文件清空?全部内容,希望文章能够帮你解决如何在python中将搁置文件清空?所遇到的程序开发问题。
如果您也喜欢它,动动您的小指点个赞吧