标签:alt https style pre inf bsp www 技术 parse
import urllib.parse url = ‘https://www.baidu.com/s?wd=董博文&ie=utf-8&tn=97931839_hao_pg‘ ‘‘‘ quote url编码函数‘‘‘ ret =urllib.parse.quote(url) print(ret) ‘‘‘url 解码函数‘‘‘ ret = urllib.parse.unquote(ret) print(ret)
Python(17)_urllib下的parse的编码解码函数
标签:alt https style pre inf bsp www 技术 parse
原文地址:https://www.cnblogs.com/sunnybowen/p/10177052.html