直接在 目录下运行 当前的目录即可是root 目录  默认端口8000  应该可以加参数修改端口号

   Python2
   python -m SimpleHTTPServer
 
   # Python 3
   python3 -m http.server

相关文章: