目录
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 ADDRESSSpecify alternate bind address [default: allinterfaces]--directory DIRECTORY, -d DIRECTORYSpecify alternative directory [default:currentdirectory]