---文件、系统---html
import glob # 给定路径下查找符合规则文件。三个匹配符:”*”, “?”, “[]”。”*”匹配0个或多个字符;”?”匹配单个字符;”[]”匹配指定范围内的字符,如:[0-9]匹配数字。python
print glob.glob("../*/*.jpg") # 返回数组
import os数组
import sys网络
import timeurl
---字符串---.net
import string # 字符串相关,譬如大小写改变,字符判断线程
from string import Formatter # 字符串替换。经过position和keyword来指定替换对象orm
"my name is {0.name}, I am living at {area[0].city}".format(person, area_list)
from string import Template # 字符串替换。默认经过$来指定替换对象htm
header = '''<title>$title</title>''' header.substitute(title=the_title)
参考文档:对象
http://blog.csdn.net/xiaoxiaoniaoer1/article/details/8542834
http://www.cnblogs.com/rollenholt/archive/2011/11/25/2263722.html
http://www.cnblogs.com/youngershen/p/3972009.html
---Server---
BaseHTTPServer
http://blog.csdn.net/linda1000/article/details/8087546
SimpleHTTPServer # HTTP 服务
CGIHTTPServer # CGI 服务
注意!有CGI脚本时,应该用CGIHTTPServer启服务,若是SimpleHTTPServer的话,会直接展现脚本内容
---网络请求---
import urllib
import urllib2
---进程、线程---
import threading
import multiprocessing
---图片---