擅长:python、mysql、java
<p>我想你一开始就走对了。<code><mypath:path></code>应该能做到。</p>
<p>我刚用0.10瓶试一试,效果不错:</p>
<pre class="lang-sh prettyprint-override"><code>~>python test.py >& /dev/null &
[1] 37316
~>wget -qO- 'http://127.0.0.1:8090/hello/cruel/world'
Your path is: /hello/cruel/world
</code></pre>
<p>这是我的密码。当你在你的系统上运行时会发生什么?</p>
<pre><code>from bottle import route, run
@route('<mypath:path>')
def test(mypath):
return 'Your path is: %s\n' % mypath
run(host='localhost', port=8090)
</code></pre>
<p>干杯!</p>