
from http.server import HTTPServer, CGIHTTPRequestHandlerport = 8002
httpd = HTTPServer(('', port), CGIHTTPRequestHandler)
print("Starting simple_httpd on port: " str(httpd.server_port))
httpd.serve_forever()

from http.server import HTTPServer, CGIHTTPRequestHandlerport = 8002
httpd = HTTPServer(('', port), CGIHTTPRequestHandler)
print("Starting simple_httpd on port: " str(httpd.server_port))
httpd.serve_forever()
评论