京公网安备 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-07-22在高并发、大数据量的业务系统中,单表数据量达到千万级甚至亿级后,会出现查询性能骤降、索引维护成本飙升、存储扩容困难等问题 ...
2026-07-22 很多企业团队并非缺乏指标,而是陷入“指标失控”:仪表盘上堆满实时跳动的数据,却无法回答“当前瓶颈在哪、下一步该做什么 ...
2026-07-22在金融风控、企业运营、行业研究等数据分析场景中,大量数据以面板数据形态存在:例如多家分支机构连续多个季度的风险指标、多位 ...
2026-07-21 很多数据分析师每天都在计算指标、制作报表,但当被问到“什么叫指标数据元”“指标数据标准包含哪些核心维度”“指标数据质 ...
2026-07-21一、活动介绍 2026暑期CDA备考冲刺季,为想利用假期拿证的你量身打造。考点胶囊内容搭配多重硬核福利,让你在旅行、实习、居家 ...
2026-07-21金融行业的运营风险贯穿业务全流程,涵盖交易欺诈、操作违规、流程漏洞、合规偏差、客户信用异常等多元场景,是银行、保险、证券 ...
2026-07-17财产保险作为金融行业的核心板块,涵盖车险、家财险、责任险、企财险等多元品类,是个人与企业抵御财产风险、经营风险的重要保障 ...
2026-07-17 很多数据分析师能熟练写SQL、做透视表,但当被问到“数据是从哪里来的?经过哪些加工才进入数据仓库?ETL具体做了什么?”时 ...
2026-07-17【核心关键词】模块、餐饮、客户、门店、企业、订单、供应链、多样化、产品、生产计划、数据分析、生产管理、物料管理、业务分 ...
2026-07-16在数字化分析时代,原始数据本身不具备业务价值,只有通过科学的统计学方法加工、拆解、验证与解读,才能挖掘数据背后的规律、差 ...
2026-07-16 很多数据分析师能熟练地写SQL、做透视表、算描述性统计,但当被问到“如何预测用户流失概率”“如何归因销量下滑的关键因素 ...
2026-07-16在描述性统计分析、数据预处理、异常值排查与多组数据分布对比工作中,箱线图(Box Plot)是应用最广泛的可视化与统计工具之一。 ...
2026-07-15在企业数据存储、业务统计与数据分析工作中,绝大多数业务数据都带有时间维度属性,例如订单创建时间、用户注册时间、支付完成时 ...
2026-07-15 很多数据分析师拿到数据就开始清洗、建模,但当被问到“这批数据属于什么类型——结构化还是非结构化?分类变量还是数值变量 ...
2026-07-15【核心关键词】产品、经营、客户、调研、销售额、宏观、会计行业、客户满意度、发展趋势、经营状况、数据分析、竞争对手、数据 ...
2026-07-14问卷调查是市场调研、用户研究、社会调研与产品分析的核心数据采集方式。问卷数据大多以分类数据为主,例如用户性别、年龄分层、 ...
2026-07-14 很多数据分析师画过趋势图、做过业绩预测,但当被问到“这个月销售额增长20%,到底是长期趋势自然增长,还是促销活动的短期 ...
2026-07-14在数据分析、业务效果验证、AB实验扩展、行业对比等场景中,我们经常需要对比三组及以上样本的均值差异,例如不同区域的客单价对 ...
2026-07-13在互联网产品运营、用户生命周期管理与商业化数据分析中,留存指标是判断产品价值、用户满意度与商业模式健康度的核心基准。常规 ...
2026-07-13