Skip to content

Instantly share code, notes, and snippets.

@ym405nm
Created September 5, 2012 10:16
Show Gist options
  • Save ym405nm/3634544 to your computer and use it in GitHub Desktop.
Save ym405nm/3634544 to your computer and use it in GitHub Desktop.
python server
# -*- coding: utf-8 -*-
print "test"
import cgi
import BaseHTTPServer,CGIHTTPServer
BaseHTTPServer.HTTPServer(( '127.0.0.1', 80 ), CGIHTTPServer.CGIHTTPRequestHandler ).serve_forever()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment