Commit 3952068d authored by 赵威's avatar 赵威

try get res from list

parent 21e0ed57
...@@ -30,7 +30,7 @@ def make_dict_from_pair(x): ...@@ -30,7 +30,7 @@ def make_dict_from_pair(x):
# [('点击内容卡片', {'假体隆胸': 1.9067764699346477}), ('点击内容卡片', {'植发': 1.9067764699346477, '植发际线': 1})] # [('点击内容卡片', {'假体隆胸': 1.9067764699346477}), ('点击内容卡片', {'植发': 1.9067764699346477, '植发际线': 1})]
def merge_results_by_event(lst): def merge_results_by_event(lst):
res = {} res = {}
for i in a: for i in lst:
event_cn = i[0] event_cn = i[0]
d = i[1] d = i[1]
if event_cn not in res: if event_cn not in res:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment