Commit 493d916b authored by lixiaofang's avatar lixiaofang

add

parent 8744fcfb
......@@ -51,16 +51,21 @@ if __name__ == "__main__":
dicts = {}
for i in topic_id and topic_id:
try:
if i[1] not in dicts.keys():
for i in topic_id and topic_id:
dicts.setdefault(i[1], [])
if i[1] not in dicts.keys():
dicts[i[1]].append(i[0])
dicts.setdefault(i[1], [])
else:
dicts[i[1]].append(i[0])
dicts[i[1]].append(i[0])
else:
dicts[i[1]].append(i[0])
except:
pass
for key, value in dicts.items():
......
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