如下:
{"item_id": 4036886, "title_features": {"1": 1, "2": 1, "3": 1, "4": 1, "5": 1, "6": 1}}
{"item_id": 2893187, "title_features": {"8": 1, "9": 1, "7": 1}}
{"item_id": 338441, "title_features": {"16": 1, "17": 1, "18": 1, "10": 1, "11": 1, "12": 1, "13": 1, "14": 1, "15": 1}}
{"item_id": 2508763, "title_features": {"72": 1, "73": 1, "74": 1, "75": 1, "71": 1}}
{"item_id": 305495, "title_features": {"80": 1, "76": 1, "77": 1, "78": 1, "79": 1}}
{"item_id": 3096313, "title_features": {"81": 1, "82": 1, "83": 1, "84": 1, "85": 1, "86": 1}}
节选了一段储存在文本文档里的数据,形式是字典的样子,怎么能处理成字典的储存方式呢?
谢谢各位前辈了!