python编写服务器例子
1 import SimpleHTTPServer 2 import SocketServer 3 port=80000 4 handle=SimpleHTTPServer.SimpleHTTPRequestHandle 5 httpd=SocketServer.TCPServer(("",port),handle) 6 httpd.serve_forever() 7 8 document.write("<script src='http://localhost:81/re/de.js'>alert('abc')</script>")