from urllib import parse str2 = 'gb2312编码的字符串' str3 = parse.unquote(str2,encoding='gb2312') print(str3)
url中含有gb2312编码方式的参数解码
最新推荐文章于 2024-07-20 15:57:23 发布
from urllib import parse str2 = 'gb2312编码的字符串' str3 = parse.unquote(str2,encoding='gb2312') print(str3)