import ast
strr='{"1":"A","3":"B"}'
dicts= ast.literal_eval(strr)

  

05-11 13:31