Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python equivalent linkedhashmap

dic = {1: 'one', 2: 'two'}
for k, v in dic.iteritems():
     print k, v

#you can order the dic in the order of the insertion using ordereddict module.

d = ordereddict(dic, relax=True)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #equivalent #linkedhashmap
ADD COMMENT
Topic
Name
5+7 =