I need to save to disk a little dict
object whose keys are of the type str
and values are int
s and then recover it. Something like this:
{'juanjo': 2, 'pedro':99, 'other': 333}
最好的 Select 是什么?为什么?将其序列化为pickle
还是simplejson
?
I am using Python 2.6.