已采纳回答 / Silver_Magician
对,最基本的是eclipse,但是如果你希望能在eclipse上编写并且能运行Python程序的话还要再下载一个PyDev插件,这样子的话你就能成功在eclipse上编写Python程序了,望采纳,谢谢!
2017-03-10
已采纳回答 / 风起了_
#coding:utf-8import urllib2url = "http://www.baidu.com"print "第一种方法"#直接请求response1 = urllib2.urlopen(url)#获取状态码print response1.getcode()#读取内容print len(response1.read())
2017-03-10
谢谢各位大佬,终于运行出来了。从乱码,到Beatifulsoup安装,再到urllib.request,谢谢各位大神。
2017-03-07
Traceback (most recent call last):
File "C:\Users\�Ż�\Desktop\Eclipse\test\src\baike_spider\spider_main.py", line 1, in <module>
from baike_spider import url_manager, html_downloader, html_parser,html_outputer
ImportError: No module named baike_spider 求解释!!!大佬们
File "C:\Users\�Ż�\Desktop\Eclipse\test\src\baike_spider\spider_main.py", line 1, in <module>
from baike_spider import url_manager, html_downloader, html_parser,html_outputer
ImportError: No module named baike_spider 求解释!!!大佬们
2017-03-04