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

Python-dictionary: Get value by key

Python-dictionary: Get value by key
{filelink=16007}

# Définition d'un dictionnaire
con_str = {"host":"127.0.0.1",
           "database":"mysql",
           "user":"root",
           "pwd":"mysql"}
print con_str 
print 'host: ',con_str.get('host'), 'User: ', con_str.get('user'),
        'Password: ', con_str.get('pwd', '****')

Users who found this page were searching for:

  • copy arraylist to another arraylist java without collections
  • perl iterate lists
  • Dictionary Get Value by Key
  • python word in dictionary key
  • java nio download file timeout
  • python dictionary get key using value
  • python iterate dict
  • python 2d dictionary value
  • python print one word from values in a dictionary
  • get dictionary key by value python

No comments yet.

Leave a Comment