使用urllib模块,urllib.unquote/urllib.quote
#coding:utf-8
import urllib
url="https://fanyi.baidu.com/#zh/en/%E7%AC%94%E8%AE%B0"
res=urllib.unquote(url)
print res
url='https://fanyi.baidu.com/#zh/en/笔记'
res=urllib.quote(url)
print res
使用urllib模块,urllib.unquote/urllib.quote
#coding:utf-8
import urllib
url="https://fanyi.baidu.com/#zh/en/%E7%AC%94%E8%AE%B0"
res=urllib.unquote(url)
print res
url='https://fanyi.baidu.com/#zh/en/笔记'
res=urllib.quote(url)
print res