京公网安备 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-10-21财务新人最容易走的一条弯路,是入职没多久就急着考证、学Python、报数据分析班,却连凭证科目还经常配错、三张表的勾稽关系说不 ...
2026-10-21财务岗位想快速提升职业知识,最常见的误区是把“学知识”理解成“读准则、背税法、刷课程”。准则和税法当然要懂,但脱离岗位任 ...
2026-10-21财务分析师想快速提升个人知识,关键不是把课程清单拉得更长,而是先看清自己当前岗位最常交付什么、卡在哪一层,再按“财务专业 ...
2026-10-21财务分析师提升技能,最容易走的弯路是“工具先行”:听说SQL重要就去学SQL,看到可视化流行就报图表课,学完却发现日常工作用不 ...
2026-10-21财会行业“学什么最有用”,不能只看课程目录长短,而要看三项标准:能否直接用于日常记账、报表和申报;能否减少核对差错与返工 ...
2026-10-21数据敏感度常被说成一种“感觉”:老会计扫一眼报表就知道哪里不对,新人对着同一张表却看不出问题。这种感觉并非天赋,而是可以 ...
2026-10-21HRBP的“职场素养”不是泛泛的礼貌得体,而是三件事的叠加:在组织里守住职业行为边界,在业务对话中讲得清判断,在关键场合拿得 ...
2026-10-21一、为什么需要把多个指标合并成一个 在业务分析和综合评价中,我们经常面对这样的困境:要给一家门店打分,它的销售额达标但利 ...
2026-10-21APP运营每天面对的问题很具体:新增为什么掉了、注册到首单在哪一步漏人、版本更新后次日留存有没有变化、活动拉来的人是不是只 ...
2026-10-21一、什么时候用卡方检验 在医学、生物、社会学和商业实验中,经常要比较"观察组"和"对照组"两组人群在某个分类指标上有没有差异 ...
2026-10-21APP运营的“通用知识”,不是把产品、市场、数据的课程目录各抄一遍,而是能支撑日常任务反复使用的一套工作常识。判断一项知识 ...
2026-10-21财务分析师提升技能,最容易走的弯路是“工具先行”:听说SQL重要就去学SQL,看到可视化流行就报图表课,学完却发现日常工作用不 ...
2026-10-21核心资源推荐 CDA教材(2025):https://edu.cda.cn/goods/show/3151CDA模拟题(2025):https://edu.cda.cn/goods/show/2845CD ...
2026-10-21一、为什么要通过实例学SQL SQL是数据从业者最基础也最高频的工具。很多人学过SELECT、WHERE、GROUP BY,但一到真实业务里就写不 ...
2026-10-20excel常见函数 一、8个核心数据清洗函数 1. TRIM:一键清除多余空格(最常用) 作用:仅保留文本中"单词/字符之间的1个空格", ...
2026-10-20会计岗位的“通用技能”常被说得太泛。更实用的界定是两层:一层是跨岗位可迁移的能力,比如沟通、业务理解、数据呈现;另一层是 ...
2026-10-20核心资源推荐 CDA教材(2025):https://edu.cda.cn/goods/show/3151CDA模拟题(2025):https://edu.cda.cn/goods/show/2845CD ...
2026-10-20一、为什么指标体系需要"先定义、后建设" 在企业数据治理和数据分析实践中,几乎每个团队都遇到过这样的场景:业务部门说"这个月 ...
2026-10-19一、为什么需要客户分群 在用户运营和客户关系管理中,最忌讳的就是"一刀切"——对所有客户发同样的券、推同样的活动、说同样的 ...
2026-10-19