上传者: 38655990
|
上传时间: 2021-09-15 18:22:43
|
文件大小: 57KB
|
文件类型: PDF
json数据转 csv
import json
import time
import csv
file = open('DXYArea-TimeSeries.json','r',encoding='utf-8')
infos = json.load(file)
with open('data.csv','a',newline='') as f:
writer = csv.DictWriter(f,fieldnames=['updateTime','provinceName',
'currentConfirmedCount','confirmedCount',