python urlopen
摘要:
一、打开一个网页获取所有的内容fromurllibimporturlopendoc=urlopen("http://www.baidu.com").read()printdoc二、获取Http头fromurllibimporturlopendoc=urlopen("http://www.baidu.com")printdoc.info()printdoc.info().getheader('Content-Type') 阅读全文
posted @ 2012-12-20 15:08 wangbokun 阅读(131) 评论(0) 推荐(0)
浙公网安备 33010602011771号