最佳答案
我有一个包含有转义字符的 URL 的列表。这些字符是由 urllib2.urlopen
在恢复 html 页面时设置的:
http://www.sample1webpage.com/index.php?title=%E9%A6%96%E9%A1%B5&action=edit
http://www.sample1webpage.com/index.php?title=%E9%A6%96%E9%A1%B5&action=history
http://www.sample1webpage.com/index.php?title=%E9%A6%96%E9%A1%B5&variant=zh
有没有办法把它们变回蟒蛇的形态?
附注: URL 是用 utf-8编码的