随笔分类 - python
摘要:实现爬虫的步骤1.分析获得目标url解析response的压缩方式,以下两种方法* response.info() -> 看Content-Encoding* 如果有chrome或者safri -》 打开浏览器工具-》network-》response查看charset。header中查看Conte
阅读全文
摘要:合法列表: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
阅读全文

浙公网安备 33010602011771号