一行代码跑httpserver

Posted by Ricky Blog on March 26, 2025

Python 2.x

$ python -m SimpleHTTPServer 8000

Python 3.x

$ python -m http.server 8000

访问:http://localhost:8000