6 lines
166 B
Python
6 lines
166 B
Python
#Python 2.X
|
|
import urllib
|
|
print urllib.unquote("http%3A%2F%2Ffoo%20bar%2F")
|
|
#Python 3.5+
|
|
from urllib.parse import unquote
|
|
print(unquote('http%3A%2F%2Ffoo%20bar%2F'))
|