URL转码 1 import urllib.parse 2 path='内容' 3 parse.quote(path,'utf-8') 4 编码 5 parse.unquote(path,'utf-8') 6 解码