#coding:utf-8 import urllib legal_person_string = "%E6%B3%95%E5%AE%9A%E4%BB%A3%E8%A1%A8%E4%BA%BA" legal_person_string = legal_person_string.decode("gbk").encode(‘utf-8‘) legal_person_caption = urllib.unquote(legal_person_string) print(legal_person_caption)
时间: 2024-10-08 22:09:40