Attention ! Cet interpréteur n’est pas totalement compatible avec Python3.
import BaseHTTPServer
import CGIHTTPServer
import cgitb; cgitb.enable() ## This line enables CGI error reporting
server = BaseHTTPServer.HTTPServer
handler = CGIHTTPServer.CGIHTTPRequestHandler
server_address = ("", 8000)
handler.cgi_directories = ["/"]
print("Starting server. Ctrl+C to quit.")
httpd = server(server_address, handler)
httpd.serve_forever()