from urllib.parse import quote,unquote
d = {'lang':'python','type':'testing','ccountry':quote('中国')}
print(d) #执行结果:{'lang': 'python', 'type': 'testing', 'ccountry': '%E4%B8%AD%E5%9B%BD'}
2022-12-04 14:08:55
from urllib.parse import quote,unquote
d = {'lang':'python','type':'testing','ccountry':quote('中国')}
print(d) #执行结果:{'lang': 'python', 'type': 'testing', 'ccountry': '%E4%B8%AD%E5%9B%BD'}