Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

python有url join的函数么?

0 views
Skip to first unread message

wincss

unread,
Jun 9, 2010, 11:34:02 AM6/9/10
to
比如
join('http://example.com/path/file.ext', 'image/pic.ext')
结果是'http://example.com/path/image/pic.ext'

join('http://example.com/path/file.ext', '/image/pic.ext')
结果是'http://example.com/image/pic.ext'

类似这样的。。。

就是浏览器根据链接跳转时候所用的规则

--

[m [1;32m※ 来源:·水木社区 newsmth.net·[FROM: 211.71.15.*] [m

0 new messages