
【收藏】670個(gè)常用的Python庫和示例代碼
通過分析github上5000個(gè)開源python項(xiàng)目,找出了最常用的庫,下表是最常用的前670個(gè)。括號里的數(shù)字代表其出現(xiàn)的次數(shù)。
由于正文不能超過20000字,下面的表格里只列舉了其中50個(gè)。
序號 | 庫 | 鏈接 |
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 |
數(shù)據(jù)分析咨詢請掃描二維碼
若不方便掃碼,搜微信號:CDAshujufenxi
SQL Server 中 CONVERT 函數(shù)的日期轉(zhuǎn)換:從基礎(chǔ)用法到實(shí)戰(zhàn)優(yōu)化 在 SQL Server 的數(shù)據(jù)處理中,日期格式轉(zhuǎn)換是高頻需求 —— 無論 ...
2025-09-18MySQL 大表拆分與關(guān)聯(lián)查詢效率:打破 “拆分必慢” 的認(rèn)知誤區(qū) 在 MySQL 數(shù)據(jù)庫管理中,“大表” 始終是性能優(yōu)化繞不開的話題。 ...
2025-09-18CDA 數(shù)據(jù)分析師:表結(jié)構(gòu)數(shù)據(jù) “獲取 - 加工 - 使用” 全流程的賦能者 表結(jié)構(gòu)數(shù)據(jù)(如數(shù)據(jù)庫表、Excel 表、CSV 文件)是企業(yè)數(shù)字 ...
2025-09-18DSGE 模型中的 Et:理性預(yù)期算子的內(nèi)涵、作用與應(yīng)用解析 動態(tài)隨機(jī)一般均衡(Dynamic Stochastic General Equilibrium, DSGE)模 ...
2025-09-17Python 提取 TIF 中地名的完整指南 一、先明確:TIF 中的地名有哪兩種存在形式? 在開始提取前,需先判斷 TIF 文件的類型 —— ...
2025-09-17CDA 數(shù)據(jù)分析師:解鎖表結(jié)構(gòu)數(shù)據(jù)特征價(jià)值的專業(yè)核心 表結(jié)構(gòu)數(shù)據(jù)(以 “行 - 列” 規(guī)范存儲的結(jié)構(gòu)化數(shù)據(jù),如數(shù)據(jù)庫表、Excel 表、 ...
2025-09-17Excel 導(dǎo)入數(shù)據(jù)含缺失值?詳解 dropna 函數(shù)的功能與實(shí)戰(zhàn)應(yīng)用 在用 Python(如 pandas 庫)處理 Excel 數(shù)據(jù)時(shí),“缺失值” 是高頻 ...
2025-09-16深入解析卡方檢驗(yàn)與 t 檢驗(yàn):差異、適用場景與實(shí)踐應(yīng)用 在數(shù)據(jù)分析與統(tǒng)計(jì)學(xué)領(lǐng)域,假設(shè)檢驗(yàn)是驗(yàn)證研究假設(shè)、判斷數(shù)據(jù)差異是否 “ ...
2025-09-16CDA 數(shù)據(jù)分析師:掌控表格結(jié)構(gòu)數(shù)據(jù)全功能周期的專業(yè)操盤手 表格結(jié)構(gòu)數(shù)據(jù)(以 “行 - 列” 存儲的結(jié)構(gòu)化數(shù)據(jù),如 Excel 表、數(shù)據(jù) ...
2025-09-16MySQL 執(zhí)行計(jì)劃中 rows 數(shù)量的準(zhǔn)確性解析:原理、影響因素與優(yōu)化 在 MySQL SQL 調(diào)優(yōu)中,EXPLAIN執(zhí)行計(jì)劃是核心工具,而其中的row ...
2025-09-15解析 Python 中 Response 對象的 text 與 content:區(qū)別、場景與實(shí)踐指南 在 Python 進(jìn)行 HTTP 網(wǎng)絡(luò)請求開發(fā)時(shí)(如使用requests ...
2025-09-15CDA 數(shù)據(jù)分析師:激活表格結(jié)構(gòu)數(shù)據(jù)價(jià)值的核心操盤手 表格結(jié)構(gòu)數(shù)據(jù)(如 Excel 表格、數(shù)據(jù)庫表)是企業(yè)最基礎(chǔ)、最核心的數(shù)據(jù)形態(tài) ...
2025-09-15Python HTTP 請求工具對比:urllib.request 與 requests 的核心差異與選擇指南 在 Python 處理 HTTP 請求(如接口調(diào)用、數(shù)據(jù)爬取 ...
2025-09-12解決 pd.read_csv 讀取長浮點(diǎn)數(shù)據(jù)的科學(xué)計(jì)數(shù)法問題 為幫助 Python 數(shù)據(jù)從業(yè)者解決pd.read_csv讀取長浮點(diǎn)數(shù)據(jù)時(shí)的科學(xué)計(jì)數(shù)法問題 ...
2025-09-12CDA 數(shù)據(jù)分析師:業(yè)務(wù)數(shù)據(jù)分析步驟的落地者與價(jià)值優(yōu)化者 業(yè)務(wù)數(shù)據(jù)分析是企業(yè)解決日常運(yùn)營問題、提升執(zhí)行效率的核心手段,其價(jià)值 ...
2025-09-12用 SQL 驗(yàn)證業(yè)務(wù)邏輯:從規(guī)則拆解到數(shù)據(jù)把關(guān)的實(shí)戰(zhàn)指南 在業(yè)務(wù)系統(tǒng)落地過程中,“業(yè)務(wù)邏輯” 是連接 “需求設(shè)計(jì)” 與 “用戶體驗(yàn) ...
2025-09-11塔吉特百貨孕婦營銷案例:數(shù)據(jù)驅(qū)動下的精準(zhǔn)零售革命與啟示 在零售行業(yè) “流量紅利見頂” 的當(dāng)下,精準(zhǔn)營銷成為企業(yè)突圍的核心方 ...
2025-09-11CDA 數(shù)據(jù)分析師與戰(zhàn)略 / 業(yè)務(wù)數(shù)據(jù)分析:概念辨析與協(xié)同價(jià)值 在數(shù)據(jù)驅(qū)動決策的體系中,“戰(zhàn)略數(shù)據(jù)分析”“業(yè)務(wù)數(shù)據(jù)分析” 是企業(yè) ...
2025-09-11Excel 數(shù)據(jù)聚類分析:從操作實(shí)踐到業(yè)務(wù)價(jià)值挖掘 在數(shù)據(jù)分析場景中,聚類分析作為 “無監(jiān)督分組” 的核心工具,能從雜亂數(shù)據(jù)中挖 ...
2025-09-10統(tǒng)計(jì)模型的核心目的:從數(shù)據(jù)解讀到?jīng)Q策支撐的價(jià)值導(dǎo)向 統(tǒng)計(jì)模型作為數(shù)據(jù)分析的核心工具,并非簡單的 “公式堆砌”,而是圍繞特定 ...
2025-09-10