python正则表达式思考_PYTHON 爬虫笔记四:正则表达式基础用法

[('https://book.douban.com/subject/30274766/?icn=index-editionrecommend', '潦草', '\n 贾行家\n', '\n 2018-8\n'), ('https://book.douban.com/subject/30228612/?icn=index-editionrecommend', '游泳回家', '\n [英]德博拉·利维\n', '\n 2018-8-1\n'), ('https://book.douban.com/subject/30280804/?icn=index-editionrecommend', '薛兆丰经济学讲义', '\n 薛兆丰\n', '\n 2018-7-1\n'), ('https://book.douban.com/subject/30185326/?icn=index-editionrecommend', '给孩子的未来脑计划', '\n 魏坤琳\n', '\n 2018-4\n'), ('https://book.douban.com/subject/30288807/?icn=index-editionrecommend', '加密与解密(第4版)', '\n 段钢\n', '\n 2018-9-1\n'), ('https://book.douban.com/subject/27176955/?icn=index-latestbook-subject', '罗特小说集2', '\n [奥] 约瑟夫·罗特 / 刘炜 主编\n', '\n 2018-6\n'), ('https://book.douban.com/subject/30222403/?icn=index-latestbook-subject', '明治天皇', '\n (美) 唐纳德·基恩 (Donald Keene)\n', '\n 2018-7\n'), ('https://book.douban.com/subject/30193776/?icn=index-latestbook-subject', '西游八十一案', '\n 陈渐\n', '\n 2018-8\n'), ('https://book.douban.com/subject/30274068/?icn=index-latestbook-subject', '经济学的思维方式', '\n 托马斯·索维尔\n', '\n 2018-8\n'), ('https://book.douban.com/subject/30246163/?icn=index-latestbook-subject', '默读.2', '\n Priest\n', '\n 2018-6\n'), ('https://book.douban.com/subject/30199434/?icn=index-latestbook-subject', '原生家庭', '\n (美)苏珊·福沃德博士 / (美)克雷格·巴克\n', '\n 2018-8\n'), ('https://book.douban.com/subject/28170953/?icn=index-latestbook-subject', '荣耀', '\n [美]纳博科夫\n', '\n 2018-7\n'), ('https://book.douban.com/subject/30167361/?icn=index-latestbook-subject', '柏林1:石之城', '\n [美] 贾森·卢茨\n', '\n 2018-9\n'), ('https://book.douban.com/subject/30229646/?icn=index-latestbook-subject', '阿波罗', '\n [英] 扎克·斯科特\n', '\n 2018-7-1\n'), ('https://book.douban.com/subject/27197821/?icn=index-latestbook-subject', '洞穴', '\n [葡] 若泽·萨拉马戈\n', '\n 2018-6\n'), ('https://book.douban.com/subject/27661637/?icn=index-latestbook-subject', '放牧人生', '\n [英]詹姆斯·里班克斯\n', '\n 2018-7\n'), ('https://book.douban.com/subject/30217911/?icn=index-latestbook-subject', '诗人继续沉默', '\n [以色列] 亚伯拉罕·耶霍舒亚\n', '\n 2018-7\n'), ('https://book.douban.com/subject/30252127/?icn=index-latestbook-subject', '今天也要好好地过', '\n [日] 吉竹伸介\n', '\n 2018-8\n'), ('https://book.douban.com/subject/30243869/?icn=index-latestbook-subject', '冷山', '\n [美] 查尔斯·弗雷泽\n', '\n 2018-8\n'), ('https://book.douban.com/subject/30198886/?icn=index-latestbook-subject', '艾略特·厄威特的巴黎', '\n [美] 艾略特·厄威特 / Elliott Erwitt\n', '\n 2018-6\n'), ('https://book.douban.com/subject/30203733/?icn=index-latestbook-subject', '阳光劫匪友情测试', '\n [日] 伊坂幸太郎\n', '\n 2018-8-1\n'), ('https://book.douban.com/subject/26877230/?icn=index-latestbook-subject', '《英国史》(全三卷)', '\n [英]西蒙·沙玛\n', '\n 2018-7\n'), ('https://book.douban.com/subject/30175383/?icn=index-latestbook-subject', '犯罪者的七不规范', '\n 张舟\n', '\n 2018-7\n'), ('https://book.douban.com/subject/30259504/?icn=index-latestbook-subject', '伟大的海', '\n [英]大卫‧阿布拉菲亚\n', '\n 2018-7-1\n'), ('https://book.douban.com/subject/30194496/?icn=index-latestbook-subject', '朋友之间', '\n [以]阿摩司·奥兹\n', '\n 2018-7\n'), ('https://book.douban.com/subject/30280610/?icn=index-latestbook-subject', '天长地久', '\n 龙应台\n', '\n 2018-8-1\n'), ('https://book.douban.com/subject/30280340/?icn=index-latestbook-subject', '格林童话', '\n 格林兄弟\n', '\n 2018-8\n'), ('https://book.douban.com/subject/30235060/?icn=index-latestbook-subject', '情感勒索', '\n [美] 苏珊·福沃德 / 唐娜·弗雷泽\n', '\n 2018-7\n'), ('https://book.douban.com/subject/30238143/?icn=index-latestbook-subject', '奥尔拉', '\n [法] 纪尧姆·索雷尔 编绘\n', '\n 2018-9\n'), ('https://book.douban.com/subject/30247531/?icn=index-latestbook-subject', '听音乐(全彩插图第11版)', '\n [美] 罗杰·凯密恩 / Roger Kamien\n', '\n 2018-7\n'), ('https://book.douban.com/subject/27598730/?icn=index-latestbook-subject', '突然死亡', '\n [墨]阿尔瓦罗·恩里克\n', '\n 2018-7\n'), ('https://book.douban.com/subject/30231921/?icn=index-latestbook-subject', '中国古代的谣言与谶语', '\n 栾保群\n', '\n 2018-7-1\n'), ('https://book.douban.com/subject/30254431/?icn=index-latestbook-subject', '被猜死的人', '\n 田耳\n', '\n 2018-8\n'), ('https://book.douban.com/subject/30187740/?icn=index-latestbook-subject', '李霖灿读画四十年', '\n 李霖灿\n', '\n 2018-6\n'), ('https://book.douban.com/subject/30218856/?icn=index-latestbook-subject', '房客', '\n [英] 萨拉·沃特斯\n', '\n 2018-7\n'), ('https://book.douban.com/subject/27045307/?icn=index-latestbook-subject', '唐物的文化史', '\n [日] 河添房江\n', '\n 2018-7\n'), ('https://book.douban.com/subject/30258687/?icn=index-latestbook-subject', '战略级天使', '\n 白伯欢\n', '\n 2018-7\n'), ('https://book.douban.com/subject/30207028/?icn=index-latestbook-subject', '中国烟草史', '\n [美]班凯乐\n', '\n 2018-7\n'), ('https://book.douban.com/subject/30237869/?icn=index-latestbook-subject', '爱情故事的两个版本', '\n [塞尔维亚]雅丝米娜·米哈伊洛维奇 / [塞尔维亚] 米洛拉德·帕维奇\n', '\n 2018-8\n'), ('https://book.douban.com/subject/30200827/?icn=index-latestbook-subject', '乐队女孩', '\n [美]金·戈登\n', '\n 2018-7\n')]import re

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
目标检测(Object Detection)是计算机视觉领域的一个核心问题,其主要任务是找出图像中所有感兴趣的目标(物体),并确定它们的类别和位置。以下是对目标检测的详细阐述: 一、基本概念 目标检测的任务是解决“在哪里?是什么?”的问题,即定位出图像中目标的位置并识别出目标的类别。由于各类物体具有不同的外观、形状和姿态,加上成像时光照、遮挡等因素的干扰,目标检测一直是计算机视觉领域最具挑战性的任务之一。 二、核心问题 目标检测涉及以下几个核心问题: 分类问题:判断图像中的目标属于哪个类别。 定位问题:确定目标在图像中的具体位置。 大小问题:目标可能具有不同的大小。 形状问题:目标可能具有不同的形状。 三、算法分类 基于深度学习的目标检测算法主要分为两大类: Two-stage算法:先进行区域生成(Region Proposal),生成有可能包含待检物体的预选框(Region Proposal),再通过卷积神经网络进行样本分类。常见的Two-stage算法包括R-CNN、Fast R-CNN、Faster R-CNN等。 One-stage算法:不用生成区域提议,直接在网络中提取特征来预测物体分类和位置。常见的One-stage算法包括YOLO系列(YOLOv1、YOLOv2、YOLOv3、YOLOv4、YOLOv5等)、SSD和RetinaNet等。 、算法原理 以YOLO系列为例,YOLO将目标检测视为回归问题,将输入图像一次性划分为多个区域,直接在输出层预测边界框和类别概率。YOLO采用卷积网络来提取特征,使用全连接层来得到预测值。其网络结构通常包含多个卷积层和全连接层,通过卷积层提取图像特征,通过全连接层输出预测结果。 五、应用领域 目标检测技术已经广泛应用于各个领域,为人们的生活带来了极大的便利。以下是一些主要的应用领域: 安全监控:在商场、银行
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值