获取带参数URL:request.get_all_path() 获取不带参数URL:request.path 获取主机地址:request.get_host() 转载于:https://www.cnblogs.com/shouzhong/p/7298965.html