📜  python Key-value 数据库 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:16.775000             🧑  作者: Mango

代码示例1
from sqlitedict import SqliteDict

mydict = SqliteDict('./my_db.sqlite', autocommit=True)
mydict['some_key'] = any_picklable_object
print(mydict['some_key'])
for key, value in mydict.items():
    print(key, value)
print(len(mydict))
mydict.close()