如果网页端的表单提交方式设为method=“GET”, 则flask程序里面提取这个参数的方法需要用:
#需要使用args.get方法
research_keyword= request.args.get("research_keyword")
如果网页段使用method="post"提交表单数据,则在Flask里提取数据时需要使用form.get方法:
#对应method="post"提交
research_keyword=request.form.get("research_keyword")
对应错误的话,获得空值。