Python磁盘文件服务器
2012-11-15 21:07:20 来源:WEB开发网核心提示:##simplehttpthread.pyfrom BaseHTTPServer import HTTPServerfrom SimpleHTTPServer import SimpleHTTPRequestHandlerfrom SocketServer import ThreadingMixInclass Thre
##simplehttpthread.py from BaseHTTPServer import HTTPServer from SimpleHTTPServer import SimpleHTTPRequestHandler from SocketServer import ThreadingMixIn class ThreadingServer(ThreadingMixIn,HTTPServer): pass serveraddr=('',8765) srvr=ThreadingServer(serveraddr,SimpleHTTPRequestHandler) srvr.serve_forever()
更多精彩
赞助商链接