美文网首页
Python3处理中文网址

Python3处理中文网址

作者: lureiny | 来源:发表于2017-02-13 16:31 被阅读0次

        Python 3 中处理中文网址使用urllib.parse.quote函数

    import urllib.parse

    url_new = urllib.parse.quote(url,safe='')(safe中放不需要处理的字符)

    相关文章

      网友评论

          本文标题:Python3处理中文网址

          本文链接:https://www.haomeiwen.com/subject/jzhtwttx.html