擅长:python、mysql、java
<p>来自<a href="https://docs.python.org/2/library/simplehttpserver.html" rel="noreferrer">the docs</a>:</p>
<blockquote>
<p>The <code>SimpleHTTPServer</code> module has been merged into <code>http.server</code> in Python 3.0. The 2to3 tool will automatically adapt imports when converting your sources to 3.0.</p>
</blockquote>
<p>因此,您的命令是<code>python -m http.server</code>,或者根据您的安装,它可以是:</p>
<pre><code>python3 -m http.server
</code></pre>