京公网安备 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
适用环境:Windows 10 / 11(64 位)|版本:2.160.1151.0(2026 年 11 月版) ” 视频教程:https://edu.cda.cn/goods/show ...
2026-12-04 适用环境:Windows 10 / 11(64 位)|版本:Anaconda3 2026.07(内置 Python 3.13) ” 视频教程:https://edu.cda.cn/good ...
2026-12-04 适用环境:Windows 10 / 11(64 位)|版本:Tableau Desktop 2026.3(含 Win10 用户的降级方案) 视频安装教程:https://ed ...
2026-12-04 适用环境:Windows 10 / 11(64 位)|安装方式:官方 MySQL Installer|版本:MySQL 8.0.x 社区版 动手时间约 20 分钟, ...
2026-12-04先说一个观察。 很多人学过统计学,会算均值、方差、标准差,也知道假设检验、置信区间和回归分析。 但真正拿到一份数据的时候, ...
2026-12-04https://edu.cda.cn/goods/show/4383?targetId=7766&preview=0 先说一个观察。 大多数人学智能体,是从提示词开始的。学完一圈 ...
2026-12-04做数据架构、知识图谱或者数据治理时,"本体模型(Ontology Model)"和"模型域(Model Domain / 主题域)"经常被放在一起讨论, ...
2026-12-03 一家公司的报表里往往有几十个指标:DAU、GMV、转化率、复购率、客单价……各部门各看各的,方向容易散。北极星指标(North ...
2026-12-02 很多指标统计做出来对不上数:同一个转化率,产品、运营、财务各算各的;或者指标定义得很完整,放到具体业务场景里却不会用 ...
2026-12-02「我们花了七个月做数据治理。」 一个在银行做数据的朋友这么跟我说。七个月,交付了三百多页的数据资产目录、一套数据标准文档 ...
2026-12-02 同样是做用户运营,有人给所有客户发同一张满减券,结果高价值客户觉得被怠慢、沉睡客户也没被唤醒;有人先把客户按价值和活 ...
2026-12-01点击链接领取WorkBuddy体验课:https://edu.cda.cn/goods/show/4341?targetId=7712&preview=0 周一 9 点半的经营会上,老板翻到 ...
2026-12-01点击链接领取WorkBuddy体验课:https://edu.cda.cn/goods/show/4341?targetId=7712&preview=0 材料交上去,评标专家问了一句: ...
2026-12-01大部分人用 AI 写东西,是"一次一份"。但办公室里真正耗时间的,往往是"同一份东西做 N 遍"。 这篇讲的就是这类活:一家做企业内 ...
2026-11-30对账这件事,最能看出一个人会不会用 AI。 因为它不是"生成内容",是"把两份不一样的东西对上"。这类活没有标准答案,只有一堆例 ...
2026-11-30让优质知识跨越语言,被更多人看见 世界各地不缺好课,缺的是能读懂它的语言。原版英文,术语密集,字幕能救句子,救不了概念— ...
2026-11-30 面对一堆数据,新手最常见的状态是:指标都在眼前,却不知道从哪下手。其实数据分析没有那么多玄学,绝大多数业务问题,都可 ...
2026-11-27一句话答案:把文件路径和问题一起给它,它自己读表、清洗、算数、出图,最后给你一个能直接发出去的文件。你负责提问题和验收, ...
2026-11-27这三个名字经常被放在一起问,但它们根本不在同一层。搞混了,选型一定出错。 点击链接领取WorkBuddy体验课:https://edu.cda.cn ...
2026-11-27 在做有序分组的趋势分析时,经常被问到一个问题:线性趋势检验(linear trend test)的自由度是 1 吗?答案是:在单因素方差 ...
2026-11-26