eEcho blog

is een halte van de gedachte

Python Dictionaries - Associative Arrays

a = { }

Leeg dictionary

b = { ’x’: 3, ’y’: 4 }

dictionary b bevat 3 met key ‘x’ en 4 met key ‘y’

c = { ’uid’: 105,
’login’: ’beazley’,
’name’ : ’David Beazley’
}

dictionary kan verschillende datatypes bevatten.

Add A Comment

You must be logged in to post a comment.

Home | info@eecho.info | Voorwaarden | Blog