10 lines
257 B
Python
10 lines
257 B
Python
import http.server
|
|
import socketserver
|
|
|
|
PORT = 8080
|
|
|
|
print("open browser on http://localhost:8080/ms.html")
|
|
with socketserver.TCPServer(("", PORT), http.server.SimpleHTTPRequestHandler) as httpd:
|
|
print("Serving at port", PORT)
|
|
httpd.serve_forever()
|