# 列表中元素是字符串,字符串里面是字典结构!
list_arr=['{"itemId":952929104036581380,"itemType":200,"evaluationIndicator":0.9929536468190772,"recommendReason":"物品余弦相似性"}', '{"itemId":958444066632245249,"itemType":200,"evaluationIndicator":0.9887214432177529,"recommendReason":"物品余弦相似性"}']
for i in range(len(list_arr)):
list_to_dict = eval(list_arr[i])
print(list_to_dict ['itemId'])
python 中将字符串格式转字典的方法,字符串里面是字典结构