python build a service, transfer files

First, the need to share the files into the directory

#cd /home

 

#python -m SimpleHTTPServer

 

 Second, browser access to resources

Then the browser address bar:

Server IP: 8000

Figure:

 

Guess you like

Origin www.cnblogs.com/lizhewei/p/11586308.html