From 8b909897af7fa084734125da9d5bcceaa757eca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E5=B3=B0=E5=90=9B=E4=B8=BB?= <994923161@qq.com> Date: Sun, 20 Oct 2024 20:17:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20app.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 app.py diff --git a/app.py b/app.py deleted file mode 100644 index 226543f..0000000 --- a/app.py +++ /dev/null @@ -1,17 +0,0 @@ -import os -import http.server -import socketserver - -# 设置要使用的端口 -PORT = 5000 - -# 设置要服务的目录 -os.chdir('.') # 替换为你想要服务的目录路径 - -# 定义请求处理程序 -Handler = http.server.SimpleHTTPRequestHandler - -# 创建服务器 -with socketserver.TCPServer(("", PORT), Handler) as httpd: - print(f"Serving at port {PORT}") - httpd.serve_forever()