前后端分离:
1、get方式:
items = dict(request.args.items())
app_name = items[“app_name”].strip()
或
appn_ame = request.args.get(“app_name”) | appn_ame = request.args[“app_name”]
2、post方式:
data = request.get_json()
clickurl = data[“clickurl”]
form或者postman传参:
1、get方式:
items = dict(request.args.items())
app_name = items[“app_name”].strip()
或
appn_ame = request.args.get(“app_name”) | appn_ame = request.args[“app_name”]
2、post方式:
username = request.form.get(“username”) | request.form[“username”]
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/17200.html