python3報錯:No module named 'urllib2'

Python 3.3以後,urllib2改成urllib.response Python 2.7 代碼:html import urllib2 response = urllib2.urlopen('http://www.baidu.com/') html = response.read() print html Python 3.3+ 代碼應該爲:python import urll
相關文章
相關標籤/搜索