>>> dictionary_string="{'a':[1,2,3,4,5], 'b':[2,4,6,8,10]}" >>> import ast >>> d = ast.literal_eval(dictionary_string) >>> d {'a': [1, 2, 3, 4, 5], 'b': [2, 4, 6, 8, 10]}
タグ: