Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
web.py 343 Bytes
Copy Edit Raw Blame History
k8gege authored 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()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化