python: @index_page.route("/upload",methods=["POST"]) def upload(): f = request.files['file'] return "request:%s,params:%s,var_a:%s" % (request.method, request.files, f) postman测试 也可以使用curl进行测试,post可以生成语句: 终端curl测试: