Untitled

mail@pastecode.io avatarunknown
plain_text
24 days ago
239 B
1
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()