2012年12月20日

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 阅读(124) 评论(0) 推荐(0) 编辑

导航