随笔分类 -  python

摘要:实现爬虫的步骤1.分析获得目标url解析response的压缩方式,以下两种方法* response.info() -> 看Content-Encoding* 如果有chrome或者safri -》 打开浏览器工具-》network-》response查看charset。header中查看Conte 阅读全文
posted @ 2016-12-08 22:15 無限大 阅读(173) 评论(0) 推荐(0)
摘要:合法列表:c = [1,"a",2,"b"] c.insert(1,3) ->[1, 3, "a",2,"b"] 第一个参数是索引 c.append(4)->[1, 3, "a",2,"b", 4]插到最后 python build in functions(BIF)查看 >> dir(__buil 阅读全文
posted @ 2016-12-07 23:28 無限大 阅读(128) 评论(0) 推荐(0)