1

我无法get_url从瓶子导入:

from bottle import get_url

错误是:

Traceback (most recent call last):
  File "./py_test.py", line 4, in <module>
    from bottle import get_url
ImportError: cannot import name get_url

当我加载任何其他类似时没有错误:run, post, get, route, view, static_file, template, ...

4

1 回答 1

3

瓶子似乎没有公开get_url功能。它确实有一个urlfunction,它包装Bottle.get_url了默认应用程序的方法。

于 2013-12-04T13:51:48.067 回答