一世红蓝的博客 } The insert and update queries is success, but the AJAX response returns error: status code 500 internal server error. Why can that be? It's successful but the result is error, and the echo from ...
凝眸伏笔的博客 TypeError: Object of type 'int64' is not JSON serializable 我的代码中,label是int64的,将其改为str,再返回res时,成功返回。 one_dict['label'] = str(ctx.label[i]) 参考: 1.在flask中使用jsonify和json....