flask 如何保证返回json有序
return Response(json.dumps(ret), mimetype='application/json')
return jsonify(med_data[int(req_data['from']):int(req_data['to']+1)])
上面一行写法对,下面一行写法错.
contact me:wechat 15122306087
return Response(json.dumps(ret), mimetype='application/json')
return jsonify(med_data[int(req_data['from']):int(req_data['to']+1)])
上面一行写法对,下面一行写法错.