python 将编码转为汉字

print 'u57fau7840u5316u5de5u4e1a'.decode('unicode-escape')

print urllib.unquote("%C0%FA%CA%B7%C9%CF%C4%C7%D0%A9%C5%A3%C8%CB%C3%C7.PDF").decode('gbk').encode('utf-8')

显示:历史上那些牛人们.PDF
原文地址:https://www.cnblogs.com/shaosks/p/6721722.html