url中常见的符号的编码

In [14]: import urllib

In [15]: urllib.unquote("%3a")
Out[15]: ':'

In [16]: urllib.unquote("%2f")
Out[16]: '/'

In [17]: urllib.unquote("%3f")
Out[17]: '?'

In [18]: urllib.unquote("%26")
Out[18]: '&'

In [19]: urllib.unquote("%25")
Out[19]: '%'

In [20]: urllib.unquote("%3d")
Out[20]: '='

In [21]: urllib.unquote("%2b")
Out[21]: '+'

posted on 2017-02-10 13:09  忧伤的南瓜  阅读(328)  评论(0编辑  收藏  举报

导航