标签: shelve

后浪云Python教程:python使用shelve保存变量

1、用shelve模块,可以将Python中的变量保存到二进制的shelf文件中。 这样,程序就可以从硬盘中恢复变量的数据。 import shelve shelfFile = ……