1# If Python version is 3.X
2python3 -m http.server
3
4# If Python version is 2.X
5python -m SimpleHTTPServer
1def run(server_class=HTTPServer, handler_class=S, addr="localhost", port=8000):
2
3 server_address = (addr, port)
4 httpd = server_class(server_address, handler_class)
5 httpd.serve_forever()