# 简单的 HTTP 服务器 import socketserver import http.serverPORT = 80 handler = http.server.SimpleHTTPRequestHandler with socketserver.TCPServer(("", PORT), handler) as http: print("Server Launch at Localhost: " + str(PORT)) http.serve_forever() # 在浏览器中输入http://127.0.0.1/