通过分析github上5000个开源python项目,找出最常用的库。下面是前670个。括号里的数字代表出现的频率,最大为5000。
1. os (2810)2. sys (2563)
3. re (1986)
4. time (1478)
5. logging (1080)
6. datetime (1032)
7. unittest (960)
8. random (891)
9. urllib (776)
10. os.path (723)
11. string (659)
12. math (560)
13. socket (556)
14. types (548)
15. subprocess (529)
16. tempfile (492)
17. shutil (484)
18. threading (475)
19. traceback (473)
20. urllib2 (472)
21. copy (455)
22. cgi (425)
23. struct (420)
24. warnings (412)
25. base64 (398)
26. urlparse (377)
27. codecs (365)
28. itertools (328)
29. glob (322)
30. inspect (310)
31. operator (309)
32. StringIO (304)
33. errno (302)
34. optparse (298)
35. hashlib (288)
36. httplib (271)
37. json (269)
38. pickle (251)
39. signal (248)
40. getopt (236)
41. csv (218)
42. mimetypes (205)
43. ConfigParser (202)
44. settings (198)
45. simplejson (197)
46. gtk (188)
47. imp (183)
48. pprint (178)
49. zipfile (174)
50. textwrap (170)
51. hmac (168)
52. uuid (167)
53. stat (166)
54. numpy (165)
55. weakref (164)
56. fnmatch (163)
57. locale (158)
58. binascii (157)
59. calendar (156)
60. cStringIO (154)
61. django (153)
62. md5 (152)
63. getpass (151)
64. thread (151)
65. select (147)
66. Queue (143)
67. platform (138)
68. gobject (133)
69. gzip (133)
70. config (130)
71. collections (130)
72. doctest (127)
73. utils (124)
74. smtplib (124)
75. __builtin__ (123)
76. cPickle (123)
77. commands (121)
78. yaml (118)
79. xmlrpclib (117)
80. atexit (114)
81. zlib (111)
82. functools (110)
83. pkg_resources (110)
84. gettext (109)
85. util (106)
86. sqlite3 (102)
87. decimal (102)
88. array (101)
89. sgmllib (100)
90. cgitb (100)
91. posixpath (100)
92. wsgiref.handlers (98)
93. gc (95)
94. sha (90)
95. pdb (90)
96. unicodedata (90)
97. tarfile (88)
98. ctypes (88)
99. models (87)
100. htmlentitydefs (86)
101. pygtk (84)
102. exceptions (83)
103. Image (81)
104. new (78)
105. rfc822 (78)
106. pygame (77)
107. wx (77)
108. MySQLdb (76)
转载自http://blog.csdn.net/xiaoranlr/article/details/47100207