文章详情
时间:2009-03-14 来源:riverbird2005
import SocketServer import SimpleHTTPServer import urllib PORT = 1234 class Proxy(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_GET(self): self.copyfile(urllib.urlopen(self.path), self.wfile) httpd = SocketServer.ForkingTCPServer(('', PORT), Proxy) print "serving at port", PORT httpd.serve_forever()
有兴趣的朋友可以自行调试.
飞艇大战
三维空间战斗机
战斗机教练
1970-01-01