2

Python 3.X

python3 -m http.server 8000 --bind 127.0.0.1 

Both port and bind address are optional. For more details, please read the official docs.

Python 2.X

python -m SimpleHTTPServer 8000

Yujiaao
12.7k 声望4.7k 粉丝

[链接]