带列表写入文件出错先 json.dumps

output = json.dumps(output, ensure_ascii=False).encode('utf-8')

原文地址:https://www.cnblogs.com/TMatrix52/p/8146049.html