Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: Using GNU dbm database handler

Python: Using GNU dbm database handler

import gdbm
db = gdbm.open("databse", "c")
db["1"] = "Learn"
db["2"] = "Java"
db["3"] = "Python"
db["4"] = "with"
db["5"] = "Perl"
db = gdbm.open("databse", "r")
keys = db.keys()
for key in keys:
    print db[key],

Users who found this page were searching for:

  • read file in python character by character
  • java socket programming ftp server with gui
  • python get key with default
  • calculate factorial perl
  • tkinter create menu
  • delete multiple variables in python
  • python check class name
  • python shallow copy dictionary
  • DSA generate signature

No comments yet.

Leave a Comment