0
点赞
收藏
分享

微信扫一扫

python一行代码即可实现文件共享服务器


目录

​​1、使用前提​​

​​2、使用命令​​

​​3、参数详解​​

1、使用前提

需要提前安装好python环境才可以使用哦

2、使用命令

python -m http.server 9999

3、参数详解

python -m http.server -h

usage: server.py [-h] [--cgi] [--bind ADDRESS] [--directory DIRECTORY] [port]

positional arguments:
port Specify alternate port [default: 8000]

optional arguments:
-h, --help show this help message and exit
--cgi Run as CGI Server
--bind ADDRESS, -b ADDRESS
Specify alternate bind address [default: all
interfaces]
--directory DIRECTORY, -d DIRECTORY
Specify alternative directory [default:current
directory]

举报

相关推荐

0 条评论