urljoin
2024-08-27 00:50:31
from urlparse import urljoin
urljoin("http://www.asite.com/folder/currentpage.html", "anotherpage.html")
'http://www.asite.com/folder/anotherpage.html'
urljoin("http://www.asite.com/folder/currentpage.html", "folder2/anotherpage.html")
'http://www.asite.com/folder/folder2/anotherpage.html'
urljoin("http://www.asite.com/folder/currentpage.html", "/folder3/anotherpage.html")
'http://www.asite.com/folder3/anotherpage.html'
urljoin("http://www.asite.com/folder/currentpage.html", "../finalpage.html")
'http://www.asite.com/finalpage.html'
最新文章
- (转载)H.264码流的RTP封包说明
- Javascript模块化规范
- AnyCAD.NET C#开发CAD软件实践(一)
- JavaScript依赖注入的实现思路
- 利用RxJava获取手机已安装的App的图片、应用名称和版本号
- C#基础精华----枚举
- 暑假集训(2)第一弹 -----Is It A Tree?(Poj308)
- thinkphp中神奇的create()方法
- JavaScript DOM编程艺术-学习笔记(第十章、第十一章)
- EM算法--第一篇
- linux 脚本保留日志
- nginx负载均衡(一)
- MVC配置伪静态
- python 3 ---购物车练习
- 魔术常量(Magic constants)
- raid5 阵列硬盘离线数据恢复成功案例
- EL和 JSTL? 在JSP中简化 java代码的写法!
- 用ab的post方式进行测试
- 使用requests库提交multipart/form-data 格式的请求
- 修改BlackLowKey皮肤样式,增加占屏比