xxxxxxxxxx
import http.server
import socketserver
PORT = 8000
Handler = http.server.SimpleHTTPRequestHandler
# Serve the localhost website on the specified port
with socketserver.TCPServer(("", PORT), Handler) as httpd:
print("Serving at localhost:" + str(PORT))
httpd.serve_forever()