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

Python: Using GNU dbm database handler

Python: Using GNU dbm database handler
{filelink=16947}

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

Users who found this page were searching for:

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

No comments yet.

Leave a Comment