今天學(xué)習(xí)python語(yǔ)言爬蟲(chóng)知識(shí)時(shí),遇到了困難,編譯器總是報(bào)出“AttributeError",試了很多方法,還不能解決,求大神指導(dǎo)?。?!代碼如下:# -*- coding: utf-8 -*-
import urllib
url = "http://www.baidu.com"
html = urllib.urlopen(url)
print html.read()編譯器結(jié)果截圖:
添加回答
舉報(bào)
0/150
提交
取消