python URLEncode && URLDecode

python URLEncode && URLDecode
>>> 
>>>  print urllib.quote( " 测试abc ")
%E6%B5%8B%E8%AF%95abc
>>> 
>>> 
>>>  print urllib.unquote( " %E6%B5%8B%E8%AF%95abc ")
测试abc
>>> 

你可能感兴趣的:(python URLEncode && URLDecode)