标题: TypeError: Object of type 'float32' is not JSON serializable [打印本页] 作者: 东方耀 时间: 2020-3-26 12:14 标题: TypeError: Object of type 'float32' is not JSON serializable # 在使用json.dump时遇到报错TypeError: Object of type 'float32' is not JSON serializable
# json.dumps(str(a)),添加str()即可
# json.dump(result_dict, f, indent=4)