0
点赞
收藏
分享

微信扫一扫

flask获取不到参数

大雁f 2022-02-08 阅读 67

flask中对于 GET和POST的请求参数获取方式不同:

if request.method == “POST”:
title = request.form.get(“title”)
else:
title= request.args.get(“title”)

举报

相关推荐

0 条评论