gpt4 book ai didi

python - 无法在Python中导入模块

转载 作者:行者123 更新时间:2023-11-30 22:42:11 25 4
gpt4 key购买 nike

为什么我遇到“未定义的 bdir 模块”错误,这是我的目录,

a.py

bdir->bdir>module.py

在a.py中

   from bdir import *  

最佳答案

__init__.py 文件(甚至是空的)放入 bdir 文件夹中。

关于python - 无法在Python中导入模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42239304/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com