摘要: 简明 Python 教程 http://sebug.net/paper/python/apbs03.html 阅读全文
posted @ 2011-06-28 23:42 网络小虫 阅读(238) 评论(0) 推荐(0) 编辑
摘要: import urllibimport osprint "downding..."url='http://www.dianzhu.net/loadimage.php?itemid=134208'urllib.urlretrieve(url,"test2.png")os.system("test2.png")print "done" 阅读全文
posted @ 2011-06-28 23:39 网络小虫 阅读(277) 评论(0) 推荐(0) 编辑
摘要: import urllibimport osprint "downding..."http = urllib.urlopen('http://www.baidu.com')file=open("test.html","w")if http.code ==200: print "donwload succ"while 1: str=http.read(1024) if not len(str): b... 阅读全文
posted @ 2011-06-28 23:37 网络小虫 阅读(319) 评论(0) 推荐(0) 编辑