开发者

python: Regex matching file extension

hi i am trying to get the extension of the file called in a url (eg /wp-includes/js/jquery/jquery.js?ver=1.3.2 HTTP/1.1) and get the query parameters passed to the file too.

What would be the best way to the 开发者_如何转开发extension?


urlparse.urlparse() and os.path.splitext().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜