京公网安备 11010802034615号
经营许可证编号:京B2-20210330
【收藏】670个常用的Python库和示例代码
通过分析github上5000个开源python项目,找出了最常用的库,下表是最常用的前670个。括号里的数字代表其出现的次数。
由于正文不能超过20000字,下面的表格里只列举了其中50个。
| 序号 | 库 | 链接 |
| 1 | os (2810) | http://www.programcreek.com/python/index/1/os |
| 2 | sys (2563) | http://www.programcreek.com/python/index/2/sys |
| 3 | re (1986) | http://www.programcreek.com/python/index/3/re |
| 4 | time (1478) | http://www.programcreek.com/python/index/4/time |
| 5 | logging (1080) | http://www.programcreek.com/python/index/5/logging |
| 6 | datetime (1032) | http://www.programcreek.com/python/index/6/datetime |
| 7 | unittest (960) | http://www.programcreek.com/python/index/7/unittest |
| 8 | random (891) | http://www.programcreek.com/python/index/8/random |
| 9 | urllib (776) | http://www.programcreek.com/python/index/9/urllib |
| 10 | os.path (723) | http://www.programcreek.com/python/index/10/os.path |
| 11 | string (659) | http://www.programcreek.com/python/index/11/string |
| 12 | math (560) | http://www.programcreek.com/python/index/12/math |
| 13 | socket (556) | http://www.programcreek.com/python/index/13/socket |
| 14 | types (548) | http://www.programcreek.com/python/index/14/types |
| 15 | subprocess (529) | http://www.programcreek.com/python/index/15/subprocess |
| 16 | tempfile (492) | http://www.programcreek.com/python/index/16/tempfile |
| 17 | shutil (484) | http://www.programcreek.com/python/index/17/shutil |
| 18 | threading (475) | http://www.programcreek.com/python/index/18/threading |
| 19 | traceback (473) | http://www.programcreek.com/python/index/19/traceback |
| 20 | urllib2 (472) | http://www.programcreek.com/python/index/20/urllib2 |
| 21 | copy (455) | http://www.programcreek.com/python/index/21/copy |
| 22 | cgi (425) | http://www.programcreek.com/python/index/22/cgi |
| 23 | struct (420) | http://www.programcreek.com/python/index/23/struct |
| 24 | warnings (412) | http://www.programcreek.com/python/index/24/warnings |
| 25 | base64 (398) | http://www.programcreek.com/python/index/25/base64 |
| 26 | urlparse (377) | http://www.programcreek.com/python/index/26/urlparse |
| 27 | codecs (365) | http://www.programcreek.com/python/index/27/codecs |
| 28 | itertools (328) | http://www.programcreek.com/python/index/28/itertools |
| 29 | glob (322) | http://www.programcreek.com/python/index/29/glob |
| 30 | inspect (310) | http://www.programcreek.com/python/index/30/inspect |
| 31 | operator (309) | http://www.programcreek.com/python/index/31/operator |
| 32 | StringIO (304) | http://www.programcreek.com/python/index/32/StringIO |
| 33 | errno (302) | http://www.programcreek.com/python/index/33/errno |
| 34 | optparse (298) | http://www.programcreek.com/python/index/34/optparse |
| 35 | hashlib (288) | http://www.programcreek.com/python/index/35/hashlib |
| 36 | httplib (271) | http://www.programcreek.com/python/index/36/httplib |
| 37 | json (269) | http://www.programcreek.com/python/index/37/json |
| 38 | pickle (251) | http://www.programcreek.com/python/index/38/pickle |
| 39 | signal (248) | http://www.programcreek.com/python/index/39/signal |
| 40 | getopt (236) | http://www.programcreek.com/python/index/40/getopt |
| 41 | csv (218) | http://www.programcreek.com/python/index/41/csv |
| 42 | mimetypes (205) | http://www.programcreek.com/python/index/42/mimetypes |
| 43 | ConfigParser (202) | http://www.programcreek.com/python/index/43/ConfigParser |
| 44 | settings (198) | http://www.programcreek.com/python/index/44/settings |
| 45 | simplejson (197) | http://www.programcreek.com/python/index/45/simplejson |
| 46 | gtk (188) | http://www.programcreek.com/python/index/46/gtk |
| 47 | imp (183) | http://www.programcreek.com/python/index/47/imp |
| 48 | pprint (178) | http://www.programcreek.com/python/index/48/pprint |
| 49 | zipfile (174) | http://www.programcreek.com/python/index/49/zipfile |
| 50 | textwrap (170) |
http://www.programcreek.com/python/index/50/textwrap |
数据分析咨询请扫描二维码
若不方便扫码,搜微信号:CDAshujufenxi
随着大数据技术的快速发展,商业竞争逐步从传统的经验式经营转变为数据驱动的精细化运营。海量的用户行为数据、交易数据、运营数 ...
2026-09-04CDA数据分析师 出品 作者:李诗怡 1. 波士顿矩阵(BCG Matrix) 定义: BCG于1970年提出的业务组合分析工具,以"市场增长率"(纵 ...
2026-09-04 数据分析师八成以上的时间在和数据表格打交道,但许多人拿到Excel后习惯性地先算、先分析,结果回头发现漏了一列关键数据, ...
2026-09-04数据透视表是Excel与Power BI中最核心的数据分析工具,具备快速汇总、维度拆分、动态筛选的能力,可高效完成数据归类与统计展示 ...
2026-09-03在Power BI数据分析可视化场景中,堆积柱状图+折线图是最常用的复合图表组合。堆积柱状图适合展示各细分维度当期数值、结构占比 ...
2026-09-03 很多数据分析师每天与Excel打交道,但当被问到“表格结构数据的基本处理单位是什么”“数据类型误判会引发哪些分析错误”“ ...
2026-09-03CDA数据分析师 出品 作者:李诗怡 一、8个核心数据清洗函数 1. TRIM:一键清除多余空格(最常用) 作用:仅保留文本中"单词/字 ...
2026-09-02数据分析的核心并非单纯操作工具、整理报表或绘制图表,而是依靠科学的思维逻辑挖掘数据价值、解释业务现象、指导经营决策。在完 ...
2026-09-02在社会经济、产业研究、区域治理与大数据实证分析中,面板数据是最具研究价值的数据类型。面板数据同时包含截面维度与时间维度信 ...
2026-09-02 很多数据分析师能熟练计算均值、标准差,但当被问到“如何用一张图让业务方3秒内看懂核心结论”“面对不同数据类型该怎么选 ...
2026-09-02在数据驱动决策的体系中,数据分析按照分析目的可分为描述性分析、诊断性分析、预测性分析与指导性分析四大类型。其中,诊断性分 ...
2026-09-01网络请求是Python爬虫开发、接口测试、数据拉取的核心基础功能,Python生态中主要依靠 urllib 和 requests 两大库实现HTTP请求操 ...
2026-09-01 很多数据分析师面对业务问题时,常常感到“知道要分析,却不知道用什么方法”。其实,数据分析并非无章可循——从三大基础范 ...
2026-09-01在数据库设计与业务数据维护中,自增ID是数据表最常用的主键字段,用于唯一标识每一条业务数据,正常状态下ID应保持连续递增。但 ...
2026-08-31在数理统计、数据分析、经济测算与日常量化评估中,平均值是刻画数据集中趋势、反映整体水平的基础核心指标。在实际应用中,最常 ...
2026-08-31在数据驱动的时代,数据分析早已不是“凭经验、靠感觉”的零散操作,而是一套具备固定逻辑、标准化流程的系统方法——这就是数据 ...
2026-08-31在大数据时代背景下,海量行业数据亟需通过专业化工具挖掘潜在价值,辅助企业业务决策、优化运营模式、规避经营风险。Python凭借 ...
2026-08-28SQL是数据分析领域最基础、最核心的工具,承担着取数、清洗、统计、分层、归因的全流程工作。不同于单纯的语法练习,实战化SQL数 ...
2026-08-28 很多企业团队并非缺乏指标,而是陷入“指标失控”:仪表盘上堆满实时跳动的数据,却无法回答“当前瓶颈在哪、下一步该做什么 ...
2026-08-28随着新零售模式的快速普及,零售行业从传统的“货品驱动”全面转向“用户驱动”。门店交易数据、线上消费记录、浏览轨迹、复购频 ...
2026-08-27