flask 获取request信息 2019-07-07 15:16:53 浏览数 (1) from flask import Flask from flask import requestapp = Flask(name)@app.route('/') def getrequest(): useragent=request.headers.get("User-Agent") return useragentif name == 'main': app.run() flask http 0 人点赞 上一篇:分享雷军22年前编写的代码