Python [edit]. import urllib s = 'http://foo/bar/' s = urllib.quote(s). There is also urllib.quote_plus() , which also encodes spaces as "+" ...
確定! 回上一頁