用几行Python代码实现一个简单的Web服务器
import SimpleHTTPServer import SocketServer PORT = 80 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler httpd = SocketServer.TCPServer(("", PORT), Handler) print "serving at port", PORT httpd.serve_forever()
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/8025.html