摘要:
转载自: https://blog.csdn.net/weixin_41951954/article/details/124838931 报这个错是因为json.dumps函数发现字典里面有 Decimal类型的数据,无法JSON serializable解决方法:是检查到Decimal类型的值转化 阅读全文
posted @ 2022-08-31 18:45
tslam
阅读(1211)
评论(0)
推荐(0)
摘要:
转载自: https://blog.csdn.net/weixin_41951954/article/details/124838931 代码 import json class BytesEncoder(json.JSONEncoder): def default(self, obj): if i 阅读全文
posted @ 2022-08-31 18:41
tslam
阅读(1444)
评论(0)
推荐(0)
摘要:
json.dumps(a, ensure_ascii=False) #带上ensure_ascii=False这个参数 阅读全文
posted @ 2022-08-31 18:16
tslam
阅读(31)
评论(0)
推荐(0)
摘要:
如下图: 阅读全文
posted @ 2022-08-31 14:37
tslam
阅读(739)
评论(0)
推荐(0)
摘要:
如下: 阅读全文
posted @ 2022-08-31 14:16
tslam
阅读(22)
评论(0)
推荐(0)
摘要:
转载于 https://blog.csdn.net/leedcandd/article/details/119920350 阅读全文
posted @ 2022-08-31 10:51
tslam
阅读(75)
评论(0)
推荐(0)

浙公网安备 33010602011771号