Python中文
首页
教程
问答
标签
搜索
登录
注册
python-m SimpleHTTPServer-Listening on 0.0.0.0:8000 but http://0.0.0.0:8000/test.html给出“找不到页面”
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>在cding到我的文件夹后,我输入</p> <pre><code>python -m SimpleHTTPServer </code></pre> <p>然后得到</p> <pre><code>Serving HTTP on 0.0.0.0 port 8000 ... </code></pre> <p>作为回应。但当我点击<code>http://0.0.0.0:8000/test.html</code>时,我会得到一个页面未找到错误。</p> <p>我也试过</p> <pre><code>pushd /path/you/want/to/serve; python -m SimpleHTTPServer; popd </code></pre> <p>取自<a href="https://stackoverflow.com/questions/2469256/set-the-current-directory-when-running-a-simplehttpserver">this question</a></p> <p>当我点击ls时,我可以看到文件和目录。有人知道我做错了什么吗?</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>你应该使用这个链接<a href="http://127.0.0.1:8000/" rel="noreferrer">http://127.0.0.1:8000/</a>并且可以看到那里的所有文件</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何将Python中的列表复制到给定的目标中?
1 回答
如何将python中的列表插入SQL表
5 回答
如何将python中的列表转换为numpy数组以放入十位
4 回答
如何将python中的列表输入javascript?
3 回答
如何将python中的列表返回给dag?
10 回答
如何将Python中的列表项重新排列成成对的元组/列表?
4 回答
如何将Python中的初始化对象序列化为XML?
4 回答
如何将python中的十进制字符串转换为数字?
5 回答
如何将Python中的原始输入文本转换为Tkinter中的标签?
7 回答
如何将python中的反斜杠命令转换为在Linux上运行
1 回答
如何将python中的命令行参数转换为字典?
1 回答
如何将python中的图像值传递到kivy中的kv文件?
1 回答
如何将Python中的图像数组(枕头对象)上传到Google云
10 回答
如何将Python中的图像编码为Base64?
2 回答
如何将python中的图像调整为灰度低分辨率,如MNIST时尚数据?
3 回答
如何将python中的多个html输出保存到单个文件(或多个)中?
2 回答
如何将Python中的多个ifelse语句重构为一个函数?
9 回答
如何将Python中的多处理与Django结合使用,从xml文件创建数千个模型实例?
8 回答
如何将python中的多级API响应转换为dataframe
9 回答
如何将python中的多线程编程模型转换为异步/等待模型?
2 回答