Commit 493d916b authored by lixiaofang's avatar lixiaofang

add

parent 8744fcfb
......@@ -51,6 +51,8 @@ if __name__ == "__main__":
dicts = {}
try:
for i in topic_id and topic_id:
if i[1] not in dicts.keys():
......@@ -62,6 +64,9 @@ if __name__ == "__main__":
else:
dicts[i[1]].append(i[0])
except:
pass
for key, value in dicts.items():
rand_num = random.randint(0, len(value) - 1)
......
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