Categories
python web

用python创建最简单的HTTP服务

python2:

python -m SimpleHTTPServer 8080

python3:

python3 -m http.server 8080

参考:https://docs.python.org/2/library/simplehttpserver.html

 

have a fun!