json.dumps()用于将dict类型的数据转成str,因为如果直接将dict类型的数据写入json文件中会发生报错,因此在将数据写入时需要用到该函数。
转载于:https://www.cnblogs.com/yuanyuan2017/p/9799967.html
json.dumps()用于将dict类型的数据转成str,因为如果直接将dict类型的数据写入json文件中会发生报错,因此在将数据写入时需要用到该函数。
转载于:https://www.cnblogs.com/yuanyuan2017/p/9799967.html