TypeError: Object of type int32 is not JSON serializable(JSON格式不能有int型)
TypeError: Object of type int32 is not JSON serializableJSON格式中不能包含int型解决办法:转浮点型再传JSON格式中不能包含int型会出现报错,但是可以是float型,所以,我们做一个float型的数据转换就可以了解决办法:转浮点型再传 # temp2数据类型为int32 ans1=float(temp2) ans2=float(temp2) ans3=float(temp2) return jsonify