from urllib.parse import quote,unquote
text = "丽江"
print(quote(text,'utf-8'))
str = "%E9%A6%99%E5%A5%88%E5%84%BF%E5%8C%85%E6%96%B0%E6%AC%BE"
print(unquote(str,'utf-8'))
url编码,解码
猜你喜欢
转载自blog.csdn.net/huanghong6956/article/details/104809256
今日推荐
周排行