【Python爬虫】:使用高性能异步多进程爬虫获取豆瓣电影Top250

在本篇博文当中,将会教会大家如何使用高性能爬虫,快速爬取并解析页面当中的信息。一般情况下,如果我们请求网页的次数太多,每次都要发出一次请求,进行串行执行的话,那么请求将会占用我们大量的时间,这样得不偿失。因此我们可以i使用高性能爬虫,也就是采用多进程,异步的方式对数据进行爬取和解析,这样就可以在更快的时间内得到我们想要的结果。本篇博文给出有关爬取豆瓣电影的例子,以此来教会大家如何使用高性能爬虫。

一.网页分析

首先我们来分析豆瓣电影的网页代码,在本次的案例当中。我们需要爬取豆瓣电影top250当中的标题title和星数star。

 

 发现,豆瓣电影当中的所有有关电影的信息全部都隐藏在< ol class="grid view">这个标签,当中,因此我们在编写xpath的时候,可以利用对它做一个循环。然后又发现,对于电影的title而言,有两个地方出现,一个地方是在图片上,另一个地方是在span标签下的class = title处,但是在span标签下具有多个标题,为了以免引起混,因此我们使用图片当中所暗含的标题title文字,使用xpath进行定位即可。

对于star而言,就更加简单了。我们发现每次一个star的分数出现,就会有又一个<div class="star">的标签在前面,然后再出现了与span有关的标签,因此我们编写xpath表达式为://ol[@class="grid_view"]//div[@class="star"]/span[@class="rating_num"]/text()

这样就可以得到一整个页面的star的数值了。当然这样我们只能获取第一页的我们想要得到的数据,怎么得到第二页的数据呢?

二.翻页处理

翻页处理对于豆瓣电影这个网站还是比较简单的。我们分别查看第一,二,三页的url,就会惊奇的发现它的网址如下:

https://movie.douban.com/top250?start=0&filter=
https://movie.douban.com/top250?start=25&filter=
https://movie.douban.com/top250?start=50&filter=

十分明显,这个网址后面有问号说明想要获取页面内容肯定需要发起get请求,都没有做有关post请求的加密,这样看来这也太简单了吧!

同样的我们发现里面的参数start在不断的变化,而filter却保持不变。因此我们只需要得到start参数的规律就知道该怎么编写爬虫了。

对于start而言,每跳转一页,就会增加25的数值,因为每一个页面里面均仅有25部电影。这样我们就找到了start参数的规律,开始编写爬虫。

三.爬虫代码的编写

在编写的代码时候,我们导入了多进程的库,使用这个库进行爬虫,也就只需要在原本代码的基础之上多添加两行代码即可,如下所示:

pool=Pool(4)
pool.map(get_information,number_ls)

这两行代码当中,第一个参数的4表示了我们使用4个进程的进程池进行数据的抓取。数值越大,爬取的效率就越高,这取决于你CPU的数量,数值不能超过CPU核心数的数量,因为一个一个CPU核心同时只能够运行单个进程。

第二行代码使用了map函数,第一个参数填写我们进行爬虫的函数,第二个参数填写爬虫函数所需要的参数。把这两个东西放到map函数里,就可以开始高性能爬虫了。

Remark:
在进行进程池爬虫的时候,我们放入的参数number_ls一定是一个列表,同时我们在get_imformation函数里使用得到的参数时,每次系统会调用这个参数列表当中的任意一个数值,而不是对整个列表进行调用。

由于整个原因,因此我们编写整个的代码·如下所示:

import requests
from lxml import etree
from multiprocessing.dummy import Pool
cookie='bid=N3Zqe_FFUKc; douban-fav-remind=1; viewed="27093751"; _vwo_uuid_v2=D401F17C96234AE149C4E04B78C3C8066|6fcc3cefe576bff2b89cdf28c4c5f597; __gads=ID=21cdec44606b00df-2250ba4d7ac4009b:T=1604034713:RT=1604034713:S=ALNI_Mb6iYJKYfbUjLxlisTQX5HCODTGKg; gr_user_id=fb6ac40c-94c3-400e-b170-47e126a9b78a; _gid=GA1.2.1520341169.1612004212; _ga=GA1.2.645228582.1602221486; ll="108288"; UM_distinctid=17752f076e4530-0b6eef25ebabba-f7b1332-1fa400-17752f076e57f0; Hm_lvt_19fc7b106453f97b6a84d64302f21a04=1612004228; Hm_lpvt_19fc7b106453f97b6a84d64302f21a04=1612004253; ap_v=0,6.0; _pk_ref.100001.4cf6=%5B%22%22%2C%22%22%2C1612004299%2C%22https%3A%2F%2Fwww.google.com%2F%22%5D; _pk_ses.100001.4cf6=*; __utma=30149280.645228582.1602221486.1611225800.1612004300.9; __utmb=30149280.0.10.1612004300; __utmc=30149280; __utmz=30149280.1612004300.9.9.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); __utma=223695111.645228582.1602221486.1612004300.1612004300.1; __utmb=223695111.0.10.1612004300; __utmc=223695111; __utmz=223695111.1612004300.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); _pk_id.100001.4cf6=9a1bb1df4597b334.1612004299.1.1612005471.1612004299.'headers={'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36',
}url='https://movie.douban.com/top250'number_ls=[]
for i in range(0,251,25):number_ls.append(i)print(number_ls)def get_information(number_ls):param={'start':number_ls,'filter' :''}page_content=requests.get(url=url,headers=headers,params=param).textwith open('douban.html','w',encoding='utf-8') as fp:fp.write(page_content)tree=etree.HTML(page_content)vedio_title=tree.xpath('//ol[@class="grid_view"]//div[@class="pic"]//a/img/@alt')star=tree.xpath('//ol[@class="grid_view"]//div[@class="star"]/span[@class="rating_num"]/text()')vedio_title_ls=[]star_ls=[]for i in vedio_title:vedio_title_ls.append(i)for i in star:star_ls.append(i)j=0while j<len(star_ls):print("the movie is ",vedio_title_ls[j])print("the star is ",star_ls[j])print()j+=1pool=Pool(4)
pool.map(get_information,number_ls)

四.输出的结果

输出的结果十分完美,一共有250份电影,如下图所示:

[0, 25, 50, 75, 100, 125, 150, 175, 200, 225, 250]
the movie is  搏击俱乐部
the star is  9.0the movie is  教父2
the star is  9.2the movie is  狮子王
the star is  9.0the movie is  指环王2:双塔奇兵
the star is  9.1the movie is  死亡诗社
the star is  9.1the movie is  钢琴家
the star is  9.2the movie is  黑客帝国
the star is  9.0the movie is  指环王1:魔戒再现
the star is  9.0the movie is  饮食男女
the star is  9.1the movie is  窃听风暴
the star is  9.1the movie is  美丽心灵
the star is  9.0the movie is  让子弹飞
the star is  8.8the movie is  绿皮书
the star is  8.9the movie is  两杆大烟枪
the star is  9.1the movie is  本杰明·巴顿奇事
the star is  8.9the movie is  海蒂和爷爷
the star is  9.2the movie is  飞越疯人院
the star is  9.1the movie is  看不见的客人
the star is  8.8the movie is  西西里的美丽传说
the star is  8.9the movie is  拯救大兵瑞恩
the star is  9.0the movie is  穿条纹睡衣的男孩
the star is  9.1the movie is  小鞋子
the star is  9.2the movie is  音乐之声
the star is  9.0the movie is  情书
the star is  8.9the movie is  海豚湾
the star is  9.3the movie is  美国往事
the star is  9.2the movie is  致命魔术
the star is  8.9the movie is  沉默的羔羊
the star is  8.9the movie is  低俗小说
the star is  8.9the movie is  禁闭岛
the star is  8.8the movie is  蝴蝶效应
the star is  8.8the movie is  七宗罪
the star is  8.8the movie is  心灵捕手
the star is  8.9the movie is  布达佩斯大饭店
the star is  8.9the movie is  春光乍泄
the star is  8.9the movie is  摩登时代
the star is  9.3the movie is  被嫌弃的松子的一生
the star is  8.9the movie is  哈利·波特与死亡圣器(下)
the star is  8.9the movie is  阿凡达
the star is  8.7the movie is  喜剧之王
the star is  8.8the movie is  致命ID
the star is  8.8the movie is  剪刀手爱德华
the star is  8.7the movie is  勇敢的心
the star is  8.9the movie is  加勒比海盗
the star is  8.8the movie is  杀人回忆
the star is  8.9the movie is  狩猎
the star is  9.1the movie is  请以你的名字呼唤我
the star is  8.9the movie is  天使爱美丽
the star is  8.7the movie is  断背山
the star is  8.8the movie is  红辣椒
the star is  9.0the movie is  触不可及
the star is  9.2the movie is  蝙蝠侠:黑暗骑士
the star is  9.2the movie is  末代皇帝
the star is  9.3the movie is  活着
the star is  9.3the movie is  寻梦环游记
the star is  9.1the movie is  乱世佳人
the star is  9.3the movie is  何以为家
the star is  9.1the movie is  指环王3:王者无敌
the star is  9.2the movie is  飞屋环游记
the star is  9.0the movie is  摔跤吧!爸爸
the star is  9.0the movie is  哈利·波特与魔法石
the star is  9.1the movie is  素媛
the star is  9.3the movie is  少年派的奇幻漂流
the star is  9.1the movie is  十二怒汉
the star is  9.4the movie is  哈尔的移动城堡
the star is  9.1the movie is  鬼子来了
the star is  9.3the movie is  天空之城
the star is  9.1the movie is  大话西游之月光宝盒
the star is  9.0the movie is  我不是药神
the star is  9.0the movie is  闻香识女人
the star is  9.1the movie is  罗马假日
the star is  9.0the movie is  天堂电影院
the star is  9.2the movie is  辩护人
the star is  9.2the movie is  猫鼠游戏
the star is  9.0the movie is  大闹天宫
the star is  9.4the movie is  肖申克的救赎
the star is  9.7the movie is  霸王别姬
the star is  9.6the movie is  阿甘正传
the star is  9.5the movie is  这个杀手不太冷
the star is  9.4the movie is  泰坦尼克号
the star is  9.4the movie is  美丽人生
the star is  9.5the movie is  千与千寻
the star is  9.4the movie is  辛德勒的名单
the star is  9.5the movie is  盗梦空间
the star is  9.3the movie is  忠犬八公的故事
the star is  9.4the movie is  星际穿越
the star is  9.3the movie is  海上钢琴师
the star is  9.3the movie is  楚门的世界
the star is  9.3the movie is  三傻大闹宝莱坞
the star is  9.2the movie is  机器人总动员
the star is  9.3the movie is  放牛班的春天
the star is  9.3the movie is  大话西游之大圣娶亲
the star is  9.2the movie is  疯狂动物城
the star is  9.2the movie is  无间道
the star is  9.2the movie is  熔炉
the star is  9.3the movie is  教父
the star is  9.3the movie is  当幸福来敲门
the star is  9.1the movie is  龙猫
the star is  9.2the movie is  怦然心动
the star is  9.1the movie is  控方证人
the star is  9.6the movie is  7号房的礼物
the star is  8.9the movie is  幽灵公主
the star is  8.9the movie is  小森林 夏秋篇
the star is  9.0the movie is  阳光灿烂的日子
the star is  8.8the movie is  第六感
the star is  8.9the movie is  重庆森林
the star is  8.8the movie is  入殓师
the star is  8.9the movie is  唐伯虎点秋香
the star is  8.7the movie is  小森林 冬春篇
the star is  9.0the movie is  爱在黎明破晓前
the star is  8.8the movie is  超脱
the star is  8.9the movie is  消失的爱人
the star is  8.7the movie is  一一
the star is  9.0the movie is  菊次郎的夏天
the star is  8.8the movie is  蝙蝠侠:黑暗骑士崛起
the star is  8.8the movie is  侧耳倾听
the star is  8.9the movie is  倩女幽魂
the star is  8.7the movie is  功夫
the star is  8.6the movie is  超能陆战队
the star is  8.7the movie is  无人知晓
the star is  9.1the movie is  人生果实
the star is  9.5the movie is  萤火之森
the star is  8.9the movie is  甜蜜蜜
the star is  8.8the movie is  借东西的小人阿莉埃蒂
the star is  8.8the movie is  玛丽和马克思
the star is  8.9the movie is  爱在日落黄昏时
the star is  8.8the movie is  驯龙高手
the star is  8.7the movie is  完美的世界
the star is  9.1the movie is  幸福终点站
the star is  8.8the movie is  告白
the star is  8.7the movie is  大鱼
the star is  8.8the movie is  阳光姐妹淘
the star is  8.8the movie is  射雕英雄传之东成西就
the star is  8.7the movie is  哈利·波特与阿兹卡班的囚徒
the star is  8.8the movie is  恐怖直播
the star is  8.8the movie is  天书奇谭
the star is  9.2the movie is  怪兽电力公司
the star is  8.7the movie is  神偷奶爸
the star is  8.6the movie is  玩具总动员3
the star is  8.8the movie is  傲慢与偏见
the star is  8.6the movie is  时空恋旅人
the star is  8.8the movie is  哈利·波特与密室
the star is  8.7the movie is  教父3
the star is  8.9the movie is  釜山行
the star is  8.6the movie is  血战钢锯岭
the star is  8.7the movie is  哪吒闹海
the star is  9.1the movie is  被解救的姜戈
the star is  8.7the movie is  七武士
the star is  9.3the movie is  喜宴
the star is  8.9the movie is  电锯惊魂
the star is  8.7the movie is  爆裂鼓手
the star is  8.7the movie is  贫民窟的百万富翁
the star is  8.6the movie is  萤火虫之墓
the star is  8.7the movie is  东邪西毒
the star is  8.6the movie is  海街日记
the star is  8.8the movie is  黑天鹅
the star is  8.6the movie is  惊魂记
the star is  9.0the movie is  无敌破坏王
the star is  8.7the movie is  你看起来好像很好吃
the star is  8.9the movie is  冰川时代
the star is  8.6the movie is  雨人
the star is  8.7the movie is  小偷家族
the star is  8.7the movie is  绿里奇迹
the star is  8.9the movie is  恋恋笔记本
the star is  8.5the movie is  爱在午夜降临前
the star is  8.8the movie is  疯狂的石头
the star is  8.5the movie is  哈利·波特与火焰杯
the star is  8.6the movie is  寄生虫
the star is  8.7the movie is  恐怖游轮
the star is  8.5the movie is  奇迹男孩
the star is  8.6the movie is  雨中曲
the star is  9.0the movie is  魔女宅急便
the star is  8.7the movie is  二十二
the star is  8.7the movie is  海边的曼彻斯特
the star is  8.6the movie is  房间
the star is  8.8the movie is  风之谷
the star is  8.9the movie is  一个叫欧维的男人决定去死
the star is  8.9the movie is  我是山姆
the star is  8.9the movie is  头号玩家
the star is  8.7the movie is  英雄本色
the star is  8.7the movie is  上帝之城
the star is  9.0the movie is  谍影重重3
the star is  8.8the movie is  疯狂原始人
the star is  8.7the movie is  未麻的部屋
the star is  9.0the movie is  岁月神偷
the star is  8.7the movie is  卢旺达饭店
the star is  8.9the movie is  纵横四海
the star is  8.8the movie is  三块广告牌
the star is  8.7the movie is  达拉斯买家俱乐部
the star is  8.8the movie is  花样年华
the star is  8.7the movie is  心迷宫
the star is  8.7the movie is  记忆碎片
the star is  8.6the movie is  模仿游戏
the star is  8.7the movie is  黑客帝国3:矩阵革命
the star is  8.8the movie is  新世界
the star is  8.8the movie is  头脑特工队
the star is  8.7the movie is  荒蛮故事
the star is  8.8the movie is  你的名字。
the star is  8.4the movie is  真爱至上
the star is  8.6the movie is  忠犬八公物语
the star is  9.2the movie is  谍影重重2
the star is  8.7the movie is  阿飞正传
the star is  8.5the movie is  地球上的星星
the star is  8.9the movie is  彗星来的那一夜
the star is  8.5the movie is  完美陌生人
the star is  8.5the movie is  战争之王
the star is  8.7the movie is  谍影重重
the star is  8.6the movie is  香水
the star is  8.5the movie is  东京教父
the star is  9.0the movie is  东京物语
the star is  9.2the movie is  朗读者
the star is  8.6the movie is  千钧一发
the star is  8.8the movie is  再次出发之纽约遇见你
the star is  8.6the movie is  驴得水
the star is  8.3the movie is  猜火车
the star is  8.5the movie is  黑客帝国2:重装上阵
the star is  8.6the movie is  无间道2
the star is  8.6the movie is  我爱你
the star is  9.1the movie is  浪潮
the star is  8.7the movie is  崖上的波妞
the star is  8.5the movie is  聚焦
the star is  8.8the movie is  小萝莉的猴神大叔
the star is  8.4the movie is  追随
the star is  8.9the movie is  黑鹰坠落
the star is  8.7the movie is  网络谜踪
the star is  8.6the movie is  虎口脱险
the star is  8.9the movie is  人工智能
the star is  8.7the movie is  九品芝麻官
the star is  8.6the movie is  2001太空漫游
the star is  8.8the movie is  可可西里
the star is  8.8the movie is  罗生门
the star is  8.8the movie is  色,戒
the star is  8.5the movie is  终结者2:审判日
the star is  8.7the movie is  城市之光
the star is  9.3the movie is  初恋这件小事
the star is  8.4the movie is  魂断蓝桥
the star is  8.8the movie is  牯岭街少年杀人事件
the star is  8.9the movie is  遗愿清单
the star is  8.7the movie is  大佛普拉斯
the star is  8.7the movie is  新龙门客栈
the star is  8.6the movie is  波西米亚狂想曲
the star is  8.7the movie is  源代码
the star is  8.5the movie is  青蛇
the star is  8.6the movie is  海洋
the star is  9.1the movie is  燃情岁月
the star is  8.8the movie is  无耻混蛋
the star is  8.6the movie is  疯狂的麦克斯4:狂暴之路
the star is  8.6the movie is  血钻
the star is  8.7the movie is  穿越时空的少女
the star is  8.6the movie is  步履不停
the star is  8.8

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://xiahunao.cn/news/352340.html

如若内容造成侵权/违法违规/事实不符,请联系瞎胡闹网进行投诉反馈,一经查实,立即删除!

相关文章

爬虫之静态页面抓取

静态网页抓取 在网络爬虫中&#xff0c;静态网页的数据比较容易获取&#xff0c;因为其所有数据都呈现在网页的HTML代码中 在静态网页抓取中&#xff0c;Python中的Requests库能够容易实现这个需求 通过requests发起Http请求 import requests url"http://www.santostan…

京东常用的API接口

今天分享的是京东平台API&#xff0c;关键字搜索接口。 点击测试​​​​​​​ 万邦京东按关键字搜索商品 API 返回值说明&#xff1a; { "items": { "keyword": "游戏", "page": 1, "real_total…

请问,你了解推荐系统吗

你知道吗 推荐系统&#xff1a;解决问题&#xff1a;系统环节&#xff1a;召回路径&#xff1a;推荐架构&#xff1a;通用技术架构&#xff1a;实现推荐&#xff1a;基于内容的推荐系统【Content-Based Recommendations】余弦相似度&#xff1a;示例计算&#xff1a;余弦相似度…

一条挨踢老狗的 2017 年终总结

2018年是中国的狗年&#xff0c;狗常常象征着忠诚&#xff0c;有忠贞不渝的意义&#xff0c;有时也代表财富。一条常年战斗在挨踢界&#xff0c;对挨踢事业忠贞不渝的老狗今天来回顾2017、展望2018。 作为一条对挨踢事业忠贞不渝的老狗&#xff0c;理所当然是热爱这个工作的&a…

Java面对对象三大特性之封装】

目录 1.封装2. 访问权限2.1 public权限2.2private权限2.3 默认权限 3.包的定义4. static成员5.静态成员初始化6.对象的打印 1.封装 封装&#xff1a;就是将数据和操作数据的方法进行结合&#xff0c;隐藏对象的属性和方法&#xff0c;仅对外实现一些接口和对象进行交互 其实就是…

Storm入门之第6章一个实际的例子

本文翻译自《Getting Started With Storm》译者&#xff1a;吴京润 编辑&#xff1a;郭蕾 方腾飞 本章要阐述一个典型的网络分析解决方案&#xff0c;而这类问题通常利用Hadoop批处理作为解决方案。与Hadoop不同的是&#xff0c;基于Storm的方案会实时输出结果。 我们的这个…

20222817 2022-2023-2《网络攻防实践》第十一次作业

目录 1.实践内容 2.实践过程 3 学习中遇到的问题及解决 4 实践总结 1.实践内容 1.Web浏览器渗透攻击实验 任务&#xff1a;使用攻击机和Windows靶机进行浏览器渗透攻击实验&#xff0c;体验网页木马构造及实施浏览器攻击的实际过程。 2.取证分析实践—网页木马攻击场景分析…

【Storm入门指南】第六章 真实示例

本章将演示一个典型的网页分析方案&#xff0c;通常使用 Hadoop 批量作业来解决的问题。不像 Hadoop 的实现方案&#xff0c;基于 Storm 的解决方案实时刷新并呈现结果。 示例有三个主要部分&#xff08;如图6.1所示&#xff09;&#xff1a; 一个 Node.js 的web应用&#xff0…

Storm 实时分析系统详解

一、Storm 概述 1、Storm 简介 Storm 是一个分布式的,可靠的,容错的数据流处理系统。它会把工作任务委托给不同类型的组件,每个组件负责处理一项简单特定的任务。Storm 集群的输入流由一个被称作 spout 的组件管理,spout 把数据传递给 bolt, bolt 要么把数据保存到某种存…

Storm 的一个案例

本章要阐述一个典型的网络分析解决方案&#xff0c;而这类问题通常利用Hadoop批处理作为解决方案。与Hadoop不同的是&#xff0c;基于Storm的方案会实时输出结果。 我们的这个例子有三个主要组件&#xff08;见图6-1&#xff09; 一个基于Node.js的web应用&#xff0c;用于测试…

getting start with storm 翻译 第六章 part-4

转载请注明出处&#xff1a;http://blog.csdn.net/lonelytrooper/article/details/9982967 Redis服务器 Redis是一套高级的用于持久化的内存KeyValue存储系统(见http://redis.io)。使用它来存储下述信息&#xff1a; ﹒产品信息&#xff0c;用于服务网站。 ﹒用户导航队列…

Phpstorm调试详解(包含命令行以及浏览器)

2019独角兽企业重金招聘Python工程师标准>>> 运行环境 PHP版本&#xff1a;5.5.12 Phpstorm : 9.0.2 xdebug : 2.2.5 下载地址&#xff0c;请下载与当前PHP版本对应的版本 系统平台&#xff1a;Windows 7 一 &#xff0c;要先给php安装xdebug扩展 1&#xff0c;…

windows核心编程之进程(3)

获取系统版本的函数: GetVersion返回一个DWORD类型的值&#xff0c;高子返回MS-DOS版本号&#xff0c;低字返回windows版本号 本来按照逻辑来说应该是低字的高字节返回windows的主版本号&#xff0c;低字节返回此版本号&#xff0c;但是编写该代码程序员犯了一个小错误&#…

2023CCPC河南省赛 VP记录

感觉现在的xcpc&#xff0c;风格越来越像CF&#xff0c;不是很喜欢&#xff0c;还是更喜欢多点算法题的比赛 VP银了&#xff0c;VP银也是银 感觉省赛都是思维题&#xff0c;几乎没有算法题&#xff0c;感觉像打了场大型的CF B题很简单没开出来&#xff0c;一直搞到最后&…

大学计算机专业 学习Python学习路线图(最新版)

这是我刚开始学习python时的一套学习路线&#xff0c;从入门到上手。&#xff08;不敢说精通&#xff0c;哈哈~&#xff09; 希望对大家有帮助哈~ 大家需要高清得完整python学习路线可以 一、Python入门、环境搭建、变量、数据类型 二、数据库编程 三、Linux系统 四、网页编…

哪些手机待办事项软件可以记录备忘并设置提醒?

当下手机软件的种类那么多&#xff0c;为什么有那么多人使用手机待办事项软件呢&#xff1f;原因很简单&#xff0c;因为这类软件可以记录备忘并设置提醒&#xff0c;非常适合哪些喜欢提前规划待办事项的人使用。但是&#xff0c;面对如此多的手机待办事项软件&#xff0c;具体…

【HTML】第 2 节 - HTML 标签

欢迎来到博主 Apeiron 的博客&#xff0c;祝您旅程愉快 &#xff01; 时止则止&#xff0c;时行则行。动静不失其时&#xff0c;其道光明。 目录 1、缘起 2、标题标签 3、段落标签 4、文本格式化标签 5、图像标签 5.1、基本作用 5.2、属性 6、超链接标签 7、音频标…

Vivado下时序逻辑模块的仿真

文章目录 D触发器两级D触发器带异步复位的D触发器带异步复位和同步置数的D触发器移位寄存器单口RAM伪双口RAM真双口RAM单口ROM 组合逻辑电路在逻辑功能上特点是任意时刻的输出仅仅取决于当前时刻的输入&#xff0c;与电路原来的状态无关。 时序逻辑在逻辑功能上的特点是任意时刻…

单元测试方法-cmockery实践

目录 单元测试概念 引子 定义 内容 方法 单元测试模型 测试模型构建 单元测试工具简介 Cmockery使用介绍 简介 使用 VPBX实践 UT框架搭建 目录 编译&#xff1a; 实例demo 例1&#xff1a; 例2&#xff1a; 例3&#xff1a; 例4&#xff1a; 例5&#xff…

从0开始搭建vue3+vite+ts+pinia项目

目录 项目搭建选项 项目搭建步骤 本地开发环境 Vite脚手架构建项目 关联Git仓库 开发工具 安装pinia 安装Sass 安装Vant-UI 安装postcss-pxtorem&#xff08;移动端项目&#xff09; 安装axios 本地调试 环境变量 本地代理 全局UI组件 路由中间件 项目部署 n…