python unquote 解码

import urllib.parse
url = "https://i.cnblogs.com/EditPosts.aspx?opt=1"
rawurl = urllib.parse.quote(url)
print(rawurl)
url = urllib.parse.unquote(rawurl)
print(url)

posted on 2019-06-18 15:46  游荡的鱼  阅读(1580)  评论(0编辑  收藏  举报

导航