需要去头去尾, dt = re.findall(r'[(](.*?)[)]', text) data_json = json.loads(dt[0]) print(dt) print(data_json)