How to use python library to transfer files within LAN
Jun 04, 2018 am 11:32 AMThis 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!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

What are the advantages and disadvantages of templating?

Google AI announces Gemini 1.5 Pro and Gemma 2 for developers

For only $250, Hugging Face's technical director teaches you how to fine-tune Llama 3 step by step

Share several .NET open source AI and LLM related project frameworks

A complete guide to golang function debugging and analysis
