How to use python library to transfer files within LAN

不言
Release: 2018-06-04 11:32:16
Original
3094 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template