Python 3 中处理中文网址使用urllib.parse.quote函数
import urllib.parse url_new = urllib.parse.quote(url,safe='')(safe中放不需要处理的字符)
import urllib.parse
url_new = urllib.parse.quote(url,safe='')(safe中放不需要处理的字符)
本文标题:Python3处理中文网址
本文链接:https://www.haomeiwen.com/subject/jzhtwttx.html
网友评论