import sys
reload(sys)
sys.setdefaultencoding('utf-8')
a = {"id":"adasd", "password":"asdasd"}
urllib.urlencode(a)
혹은
urllib.quote_plus("asdasd") or urllib.quote("asdasd")
반응형
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
a = {"id":"adasd", "password":"asdasd"}
urllib.urlencode(a)
혹은
urllib.quote_plus("asdasd") or urllib.quote("asdasd")