京公网安备 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
近日,由 CDA 数据科学研究院重磅发布的《2026 全球数智化人才指数报告》,被中国教育科学研究院官方账号正式收录, ...
2026-04-22在数字化时代,客户每一次点击、浏览、下单、咨询等行为,都在传递其潜在需求与决策倾向——这些按时间顺序串联的行为轨迹,构成 ...
2026-04-22数据是数据分析、建模与业务决策的核心基石,而“数据清洗”作为数据预处理的核心环节,是打通数据从“原始杂乱”到“干净可用” ...
2026-04-22 很多数据分析师每天盯着GMV、转化率、DAU等数字看,但当被问到“什么是指标”“指标和维度有什么区别”“如何搭建一套完整的 ...
2026-04-22在数据分析与业务决策中,数据并非静止不变的数值,而是始终处于动态波动之中——股市收盘价的每日涨跌、企业月度销售额的起伏、 ...
2026-04-21在数据分析领域,当研究涉及多个自变量与多个因变量之间的复杂关联时,多变量一般线性分析(Multivariate General Linear Analys ...
2026-04-21很多数据分析师精通描述性统计,能熟练计算均值、中位数、标准差,但当被问到“用500个样本如何推断10万用户的真实满意度”“这 ...
2026-04-21在数据处理与分析的全流程中,日期数据是贯穿业务场景的核心维度之一——无论是业务报表统计、用户行为追踪,还是风控规则落地、 ...
2026-04-20在机器学习建模全流程中,特征工程是连接原始数据与模型效果的关键环节,而特征重要性分析则是特征工程的“灵魂”——它不仅能帮 ...
2026-04-20很多数据分析师沉迷于复杂的机器学习算法,却忽略了数据分析最基础也最核心的能力——描述性统计。事实上,80%的商业分析问题, ...
2026-04-20在数字化时代,数据已成为企业决策的核心驱动力,数据分析与数据挖掘作为解锁数据价值的关键手段,广泛应用于互联网、金融、医疗 ...
2026-04-17在数据处理、后端开发、报表生成与自动化脚本中,将 SQL 查询结果转换为字符串是一项高频且实用的操作。无论是拼接多行数据为逗 ...
2026-04-17面对一份上万行的销售明细表,要快速回答“哪个地区卖得最好”“哪款产品增长最快”“不同客户类型的购买力如何”——这些看似复 ...
2026-04-17数据分析师一天的工作,80% 的时间围绕表格结构数据展开。从一张销售明细表到一份完整的分析报告,表格结构数据贯穿始终。但你真 ...
2026-04-16在机器学习无监督学习领域,Kmeans聚类因其原理简洁、计算高效、可扩展性强的优势,成为数据聚类任务中的主流算法,广泛应用于用 ...
2026-04-16在机器学习建模实践中,特征工程是决定模型性能的核心环节之一。面对高维数据集,冗余特征、无关特征不仅会增加模型训练成本、延 ...
2026-04-16在数字化时代,用户是产品的核心资产,用户运营的本质的是通过科学的指标监测、分析与优化,实现“拉新、促活、留存、转化、复购 ...
2026-04-15在企业数字化转型、系统架构设计、数据治理与AI落地过程中,数据模型、本体模型、业务模型是三大核心基础模型,三者相互支撑、各 ...
2026-04-15数据分析师的一天,80%的时间花在表格数据上,但80%的坑也踩在表格数据上。 如果你分不清数值型和文本型的区别,不知道数据从哪 ...
2026-04-15在人工智能与机器学习落地过程中,模型质量直接决定了应用效果的优劣——无论是分类、回归、生成式模型,还是推荐、预测类模型, ...
2026-04-14