tags:

views:

72

answers:

1
+7  A: 

You can use urllib.quote together with map:

import urllib
q = ['with space1', 'with space2']
qescaped = map(urllib.quote, q)
sth