1 Star 5 Fork 4

木合塔尔/Flask-Web应用开发项目实战-基于Python和统信UOS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
my_server.py 341 Bytes
一键复制 编辑 原始数据 按行查看 历史
木合塔尔 提交于 2023-09-26 17:16 +08:00 . 1.0
# 简单的 HTTP 服务器
import socketserver
import http.server
PORT = 8000
handler = http.server.SimpleHTTPRequestHandler
with socketserver.TCPServer(("", PORT), handler) as http:
print("Server Launch at Localhost: " + str(PORT))
http.serve_forever()
# 也可以在终端直接执行一下命令
# python3 -m http.server 8000
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/botiway/code.git
git@gitee.com:botiway/code.git
botiway
code
Flask-Web应用开发项目实战-基于Python和统信UOS
master

搜索帮助