我有那个文件结构-
博客\DataObjects\User.py
博客\index.py
我想从 index.py 中导入 User.py 中的函数(say_hello)。我正在尝试这段代码 -
from Blog.DataObjects.User import say_hello
say_hello()
我有那个错误-
Traceback (most recent call last):
File "index.py", line 1, in <module>
from Blog.DataObjects import User
ImportError: No module named Blog.DataObjects