Built-python download servers

python built a download server. For example, your colleague to let you transfer files located in one directory, then you can enter this directory and execute the following command to start a download server

python2

python -m SimpleHTTPServer

python3

python -m http.server

If there is a file named index.html in the current directory, the default display the contents of the file, and if not, the list of files in the current directory is displayed

Guess you like

Origin www.cnblogs.com/sellsa/p/11299313.html