位置:有考网 > 计算机类>python开发> Python常用第三方库总结  正文

Python常用第三方库总结

发布时间:2022-03-21 15:42:46来源:转载

Python是一个有条理的、强大的面向对象的程序设计语言。首先需要学习Python的基础知识,下载、安装、导入库、字符串处理、函数使用等等。一起来看看小编整理的Python常用第三方库总结。

网络请求

•requests: Requests allows you to send HTTP/1.1 requests extremely easily. 一个处理http请求的客户端库,比urllib使用方便。

•selenium The selenium package is used to automate web browser interaction from Python. 可以驱动浏览器执行特定的动作,如点击、下拉等操作,对于一些用JS做谊染的页面来说,这种抓取方式是非常有效的。

•scrapyScrapy is a fast high-level web crawling and web scraping framework, used to crawl websites and extract structured data from their pages. Scrapy 算得上是Python世界中较常用的爬虫框架了,一般工程化使用该框架。

网页解析

•Beautiful soup Beautiful Soup is a library that makes it easy to scrape information from web pages. It sits atop an HTML or XML parser, providing Pythonic idioms for iterating, searching, and modifying the parse tree. HTML或XMl的解析库,它可以很方便的解析网页中提取数据,拥有强大的API和多种解析方式。

•parsel Parsel is a BSD-licensed Python library to extract and remove data from HTML and XML using XPath and CSS selectors, optionally combined with regular expressions. parsel 是scrapy出品的库,用于网页内容解析。

•[scrapy的selector] scrapy selector也是一个网页数据解析器,基于parsel封装,简单、直接、。

机器学习库

•scikit learn scikit-learn is a Python module for machine learning built on top of SciPy and is distributed under the 3-Clause BSD license. 一个机器学习库,常用的机器学习算法都包含在内,按照分类、回归、聚类等组织,每一块有对应的多种算法实现。

•pytorch An open source machine learning framework that accelerates the path from research prototyping to production deployment. Facebook开源的深度学习框架,不需要定义计算图,在科研领域使用较多,逐渐过渡到工程领域,对标tensorflow。

•tensorflow TensorFlow is an open source software library for high performance numerical computation. Its flexible architecture allows easy deployment of computation across a variety of platforms (CPUs, GPUs, TPUs), and from desktops to clusters of servers to mobile and edge devices. Google开源的深度学习框架,1.x版本需要用户定义计算图,目前主推2.x版本,使用eager模式,自动生成计算图。工业领域应用广泛。

图像处理

•opencv-python python包装的opencv库,相较于C++,更易使用,可方面的基于opencv,探索图像方面的知识,具体到工程化可能还需要转成C++的方式调用。

•[scikit-image]Image processing in Python (https://pypi.org/project/scikit-image/) Python中的PIL和Pillow只提供较基础的数字图像处理,opencv-python是对opencv的封装。, 而sciki-image是基于scipy的一款图像处理包,它将图片作为numpy数组进行处理。

web框架

• Flask Flask is a lightweight WSGI web application framework. python的一个轻量级web框架。

• DjangoDjango is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. python世界中一个比较完善的web框架。

我们用python可以做什么?

面向对象:所谓面向对象,“面向对象”这句话的大概意思就是你在Python中输入放入一切、在Python中看到的一切都可以称之为“对象”。

可移植:这点很重要,其可以在目前所有的主流平台上编译和运行。

功能强大、可混合:python不需要复杂的类型和大小的生命、自动内存管理和内置工具都是其强大功能的来源,除此之外还包含了丰富的第三方库,满足你的一切需求。

简单易用、易学:这点对初学者很重要,我当初转行互联网的时候就是冲着python简单易学这点,俗话说男怕入错行,较的转行是你先到了这个行业,其他的知识可以在工作中学习。

福州值得推荐的python培训机构
python和C++哪个比较好?
天津效果好的Python开发培训机构有哪些
长沙python开发学习需要报班吗
西安有没有专业的python开发培训班?
python开发环境应该如何选择?

相关内容: Python常用第三方库 Python 达内

同类文章