cda

您的位置:首页 > 精彩阅读 > 【收藏】670个常用的Python库和示例代码

【收藏】670个常用的Python库和示例代码

2018-05-16

【收藏】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


完 谢谢观看

分享
收藏

OK