with codecs.open('/Users/liweijing/Desktop/处理结果/9.6newlive.json', "w", "utf-8") as f:
j = json.dumps(count, indent=4, ensure_ascii=False)
f.write(j)
count是Python对象
如图:
with codecs.open('/Users/liweijing/Desktop/处理结果/9.6newlive.json', "w", "utf-8") as f:
j = json.dumps(count, indent=4, ensure_ascii=False)
f.write(j)
count是Python对象
如图: