2024-04-20 04:26:33 发布
网友
在文件sched.py中,我导入:
sched.py
# -*- coding: utf-8 -*- import controller.api
但是python告诉我们:
文件sched.py与目录controller位于同一级别。在
controller
在目录controller我有文件api.py
api.py
为什么Python会给我这样的错误?在
您需要在“controller”目录中放置一个名为\uuinit_uu.py的空文件。该文件将该目录表示为Python模块。参见:
https://docs.python.org/3/tutorial/modules.html
您需要在“controller”目录中放置一个名为\uuinit_uu.py的空文件。该文件将该目录表示为Python模块。参见:
https://docs.python.org/3/tutorial/modules.html
相关问题 更多 >
编程相关推荐