返回顶部

收藏

store and fetch data by key

更多
import anydbm
file = anydbm.open('filename','c') 
file['key'] = 'data'            
data = file['key']               

标签:Python,Database

收藏

0人收藏

支持

0

反对

0

»更多 您可能感兴趣的代码
  1. 2016-08-19 14:59:44List Mini-Web Pages with Editing Links by 蟋蟀MM
  2. 2016-12-26 12:10:05Python object persistence for dictionary like object by 司马
  3. 2016-05-30 15:52:18Reading from a Database by 司马
  4. 2016-08-19 15:16:41pickle Module by 司马
  5. 2016-05-30 15:58:48Use Pickle to save and read by 张宋付
  6. 2016-08-19 15:35:44unpickle the object by jack.chen
  7. 2016-03-08 16:35:02Generic access to DBM-style databases by 阮小七
  8. 2016-05-30 16:11:27Find a word in shelve file by 山药
  9. 2015-02-23 09:40:23ubuntu安装python3的python-pip by 甄码农
  10. 2013-06-04 13:43:27web.py中自定义jinja2模块 by 赵小全
  11. 2016-11-08 09:15:25Writing to a Database by wubai