pythonorderdict访问,在Python OrderedDict中获取关键索引?
I have a collections.OrderedDict with a list of key, value pairs. I would like to compute the index i such that the ith key matches a given value. For example:food = OrderedDict([('beans',33),('rice',...