mac上开启python服务器

使用mac本身带的python直接运行环境

1. 随意创建一个文件夹

2. 直接终端cd进入文件夹

3. 开启命令 python -m SimpleHTTPServer 9999

4. 文件夹中直接创建test.html

5. 直接运行:http://localhost:9999/test.html

猜你喜欢

转载自blog.csdn.net/github_33467146/article/details/81075886