1 Star 0 Fork 50

projectsets / K8tools

forked from 天明 / K8tools 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
web.py 343 Bytes
一键复制 编辑 原始数据 按行查看 历史
k8gege 提交于 2019-03-23 20:08 . Add files via upload
import SimpleHTTPServer
import SocketServer
import sys
PORT = 80
if len(sys.argv) != 2:
print("use: web.exe port")
else:
PORT = int(sys.argv[1])
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("", PORT), Handler)
print "SimpleHTTPServer is ", PORT
print "by k8gege"
httpd.serve_forever()
PowerShell
1
https://gitee.com/projectsets/K8tools.git
git@gitee.com:projectsets/K8tools.git
projectsets
K8tools
K8tools
master

搜索帮助