摘要: 常用模块21 shelve模块 也是一种序列化方式 使用方法 1.open sl = shelve.open("shelvetest.txt") 读出来s1是一个字典形式,注意关闭文件 2.读写 写进去 sl["date"] = "8-13" 读出来 s2.get("list1") 3.close 阅读全文
posted @ 2018-08-13 16:43 吴之家 阅读(89) 评论(0) 推荐(0) 编辑