我有一个这样的项目结构......
app/
main.py
app/
__init__.py
boot.py
server.py
controllers/
__init__.py
home.py
进口是...
# main.py
from app import server
# server.py
from . import boot
# boot.py
from . import controllers
# controllers/__init__.py
from . import home
# controllers/home.py
from .. import boot
现在除了最后一个之外,所有的导入都在工作。抛出的错误是......
ImportError: cannot import name boot
有什么问题?(我正在使用 Python 3.2)