python
import http.server
import socketserver
PORT = 8002
Handler = http.server.SimpleHTTPRequestHandler
with socketserver.TCPServer(("", PORT), Handler) as httpd:
print("serving at port", PORT)
httpd.serve_forever()
使用: 保存为httpserver.py, 放在你想访问和下载文件夹下。
网页搜索你自己本地ip:端口号,如 http://192.168.1.111:8002