Loading

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]

posted @ 2021-04-19 09:29  Roc-xb  阅读(15)  评论(0)    收藏  举报

易微帮源码


易微帮官网