Python 3 中处理中文网址使用urllib.parse.quote函数 import urllib.parse url_new = urllib.parse.quote(url,safe='')(safe中放不需要处理的字符)