Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
239 B
2
Indexable
Never
import http.server
import socketserver

PORT = 8501

handler = http.server.SimpleHTTPRequestHandler

with socketserver.TCPServer(("", PORT), handler) as httpd:
    print("Server started at localhost:" + str(PORT))
    httpd.serve_forever()