Python The command line builds a file download server ,Python3
python -m http.server 8080 --directory E:/code/
This command tells Python System on port 8080 start-up http The server .
--directory The following folder E:/code/ As http The server provides the root directory of file download share . After successful startup , Type in the browser 127.0.0.1:8080, Pictured :
from Python3.7.
Above is Python3, If it is Python2, Then the order is :
python -m SimpleHTTPServer 55555
Appoint 55555 For server port . Take the current command startup directory as http Server root .