【发布时间】:2013-12-04 13:18:38
【问题描述】:
我无法从瓶子中导入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,...
【问题讨论】:
-
当你去@
import bottle; bottle.get_url你真的可以调用这个函数吗? -
我不能:
AttributeError: 'module' object has no attribute 'get_url'
标签: python import importerror bottle geturl