摘要:
pyhon2.x可以用一条简单的命令开启一个http服务器:python -m SimpleHTTPServer 8080python3以后命令不起作用了。可以用一个简单的脚本实现,代码如下:from http.server import HTTPServer, CGIHTTPRequestHandlerport = 8080httpd = HTTPServer(('',port), CGIHTTPRequestHandler)print('Starting simple httpd on port: ' + str(httpd.server_port))htt 阅读全文
posted @ 2012-12-14 15:55
RonnieHow
阅读(1528)
评论(0)
推荐(0)
浙公网安备 33010602011771号