摘要:
>>> a = '会'>>> a.decode('ascii')Traceback (most recent call last): File "<stdin>", line 1, in <module>UnicodeDecodeError: 'ascii' codec can't decode b 阅读全文
摘要:
python2 from urllib2 import urlparse python3 from urlib.parse import urlparse >>> url = "http://localhost/test.py?a=hello&b=world ">>> from urlib2 imp 阅读全文