Commit 2061209a authored by 李小芳's avatar 李小芳

add

parent a139387f
......@@ -260,9 +260,9 @@ if __name__ == "__main__":
break
all_data = []
open_file = open("save_data.txt", "r", encoding="utf-8")
open_file = open(file_name, "r", encoding="utf-8")
for item in open_file.readlines():
all_data.extend(json.loads(item))
all_data.append(json.loads(item))
res = pd.DataFrame(all_data)
res.to_csv("result1.csv", encoding="gb18030")
......
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