Untitled
Anonymous
plain_text
08/28/2023 9:04 AM
320 B
19
Indexable
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()Editor is loading...