RosettaCodeData/Task/URL-encoding/Python/url-encoding.py

4 lines
56 B
Python

import urllib
s = 'http://foo/bar/'
s = urllib.quote(s)