python HTTPSimpleServer
时间: 2023-10-15 15:23:57 浏览: 154
Python SimpleHTTPServer是Python自带的一个模块,用于快速搭建一个简单的HTTP服务器。它在Python 2中是独立的一个模块,而在Python 3中已经合并到http.server模块中。在Python 2中,可以使用命令python -m SimpleHTTPServer [端口号]快速启动一个HTTP服务器。不填写端口号则默认使用8000端口。在浏览器中访问该服务器的地址为http://IP:端口号/。在Python 3中,使用命令python3 -m http.server [端口号]启动HTTP服务器,用法与Python 2中的SimpleHTTPServer相似。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Python(23)python -m SimpleHTTPServer](https://blog.csdn.net/weixin_42221654/article/details/129119587)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [Python 网络编程(3):SimpleHTTPServer](https://blog.csdn.net/Robin_Pi/article/details/110442405)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文