删除 app.py
This commit is contained in:
parent
70dea3aece
commit
8b909897af
17
app.py
17
app.py
@ -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()
|
Loading…
Reference in New Issue
Block a user