06 2021 档案
摘要:collection 的官方 method文档 db.collection.aggregate(): 对集合进行聚合操作 db.collection.countDocuments(query, limit, skip, ...): 返回满足条件的文档数 db.collection.createInd
阅读全文
摘要:正则表达式中,group()用来提出分组截获的字符串,()用来分组 例如: 1 import re 2 a = "123abc456" 3 print re.search( "([0-9]*)([a-z]*)([0-9]*)" ,a).group( 0 ) #123abc456,返回整体 4 pri
阅读全文
摘要:requests库是python中比较不错的爬取功能的第三方库 安装: pip install requests 测试安装: 在IDLE中 import requests r = requests.get("http://www.baidu.com") r.status_code # 输出 200
阅读全文

浙公网安备 33010602011771号