标签:技巧 flask
flask获取真实ip
if request.headers.getlist("X-Forwarded-For"): ip = request.headers.getlist("X-Forwarded-For")[0]else: ip = request.remote_addr
未完成
flask技巧(不断更新)
原文地址:http://xiaosu.blog.51cto.com/2914416/1691618