基本流程:
1、需要的支持
     1)python3用http模块下的子模块,即:http.server模块
     2)将希望共享的文件放在c盘下,如:C:\游戏行业面试专用
2、打开cmd,cd c:\\python34
3、cd C:\test
4、c:\\python34\python -m http.server
5、在网页中输入http://192.168.1.101:8000/
效果图:
python3用http.server模块搭建简易版服务器
6、可成功下载文件等


演示:
Microsoft Windows [版本 10.0.10586]
(c) 2016 Microsoft Corporation。保留所有权利。
C:\Users\Administrator>cd c:\\python34
c:\Python34>cd c:\\test
c:\test>c:\\python34\python -m http.server
Serving HTTP on 0.0.0.0 port 8000 ...
192.168.1.101 - - [02/Apr/2016 23:54:40] "GET / HTTP/1.1" 200 -

 

相关文章:

  • 2021-08-05
  • 2021-08-20
  • 2022-12-23
  • 2022-01-01
  • 2022-01-22
  • 2021-12-03
  • 2021-06-21
猜你喜欢
  • 2022-12-23
  • 2021-11-30
  • 2021-05-04
  • 2022-01-06
  • 2021-09-25
  • 2021-08-21
  • 2022-01-08
相关资源
相似解决方案