10 lines
234 B
Python
10 lines
234 B
Python
import http.server
|
|
import socketserver
|
|
|
|
PORT = 8000
|
|
Handler = http.server.SimpleHTTPRequestHandler
|
|
|
|
with socketserver.TCPServer(("", PORT), Handler) as httpd:
|
|
print(f"Serving at http://localhost:{PORT}")
|
|
httpd.serve_forever()
|