This article mainly introduces the method of using python library to transfer files within the local area network. It has certain reference value. Now I share it with you. Friends in need can refer to it.
1. The computer has been set up python environment
2. Go deep into the file directory that needs to be transferred. Here we take sharing the nemo-huiyuanfei file as an example
3. Enter cmd in the path bar and press Enter to enter the terminal
4. Enter the command python -m SimpleHTTPServer 8090 and press Enter (the port number can be arbitrary, it does not have to be 8090)
5. Enter the IP Port of the host where the file is located in any browser input box on the LAN to access it This file directory and download ()
6. Click the file you want to download to download
7. [Note] The command input for python3.X is python -m http.server 8090
Related recommendations:
Use Python to implement local file sharing in the same network
The above is the detailed content of How to use python library to transfer files within LAN. For more information, please follow other related articles on the PHP Chinese website!