Python-用Python建立Web服务器JAY.LIN 收录于 Python 2024-05-06 约 106 字 预计阅读 1 分钟 目录 [Python] 用Python建立Web服务器在想要的目录下,执行如下指令(前提当然是需要安装了python): python -m CGIHTTPServer默认的端口为 8000如果要改变端口,可以这样: python -m CGIHTTPServer 80-m 选项的含义:-m mod : run library module as a script (terminates option list)Please enable JavaScript to view the comments powered by Giscus.