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