擅长:python、mysql、java
<p>Python 3中的<code>urllib2</code>被拆分为<a href="http://docs.python.org/2/library/urllib2.html" rel="nofollow">several modules</a>:</p>
<blockquote>
<p>The <code>urllib2</code> module has been split across several modules in Python 3
named <code>urllib.request</code> and <code>urllib.error</code>. The <code>2to3</code> tool will
automatically adapt imports when converting your sources to Python 3.</p>
</blockquote>
<p><a href="http://docs.python.org/3.0/library/urllib.request.html" rel="nofollow">^{<cd2>}</a>是用于发出HTTP请求的内容。在</p>
<p>或者,开源的<a href="http://python-requests.org" rel="nofollow">Requests</a>库为在python2和python3中发出HTTP请求提供了一个更简单、更干净的API。在</p>