利用python库在局域网内传输文件的方法
作者:countofdane 时间:2021-01-29 03:41:48
1.电脑已经搭建python环境
2.深入到需要传输的文件目录下,此处以分享 nemo-huiyuanfei 文件为例
3.在路径栏输入 cmd 按回车进入终端
4.输入命令 python -m SimpleHTTPServer 8090 按回车 (端口号可以任意,不用必须为8090)
5.在局域网中任意浏览器输入框输入 文件所在主机 IP + Port 即可访问此文件目录并下载 ()
6.点击需要下载的文件即可下载
7. 【注意】python3.X 的命令输入为 python -m http.server 8090
来源:https://blog.csdn.net/countofdane/article/details/78203978
标签:python,局域网,传输,文件
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
详解MySQL数据库之更新语句
2010-08-08 09:15:00
Django2.1.7 查询数据返回json格式的实现
2023-09-28 09:54:20
![](https://img.aspxhome.com/file/2023/9/63239_0s.png)
asp fso操作类
2011-03-07 10:57:00
Python减少循环层次和缩进的技巧分析
2023-10-07 21:41:09
![](https://img.aspxhome.com/file/2023/2/78732_0s.png)
Mootools 1.2教程(9)——输入过滤第二部分(字符串)
2008-12-01 12:25:00
Django学习之文件上传与下载
2023-09-24 18:42:23
python将字典内容写入json文件的实例代码
2023-08-08 09:14:55
![](https://img.aspxhome.com/file/2023/2/61492_0s.png)
为什么JavaScript中正则表达式的test方法会出错?
2009-03-17 12:38:00
Google谷歌农历鼠年春节的变化
2008-02-11 17:07:00
![](https://img.aspxhome.com/file/UploadPic/20082/11/200821117922974s.png)
PHP文件上传功能实现逻辑分析
2023-05-25 02:28:30
python画双y轴图像的示例代码
2021-12-07 16:07:12
如何通过Python实现定时打卡小程序
2023-10-20 14:11:33
![](https://img.aspxhome.com/file/2023/9/82579_0s.png)
SQL提供的进行数据传输的实用程序—BCP
2009-01-23 13:45:00
Python Django框架实现应用添加logging日志操作示例
2022-09-17 20:59:52
html+css+js实现别踩白板小游戏
2023-09-02 10:05:42
![](https://img.aspxhome.com/file/2023/4/56064_0s.png)
python实现FTP服务器服务的方法
2021-01-08 10:07:38
![](https://img.aspxhome.com/file/2023/1/72001_0s.png)
《CSS禅意花园》学习笔记
2008-10-20 12:43:00
![](https://img.aspxhome.com/file/UploadPic/up/2008102012534738.gif)
python模拟鼠标拖动操作的方法
2021-10-02 15:06:07
![](https://img.aspxhome.com/file/2023/5/63595_0s.gif)
JS实现淡入淡出图片效果的方法分析
2023-08-24 08:45:44
详解Python操作Excel之openpyxl
2021-10-13 05:13:21