问题1: chart.json报错:TypeError: a bytes-like object is required, not 'str' 问题2: 如何将生成文件保存为本地json文件? 多谢楼主