【发布时间】:2021-09-13 02:09:59
【问题描述】:
我在主 python 文件的目录中有一个名为 helper 的模块,但是 pylance 警告 Import "helper" could not be resolved 即使 python3 完美运行它,如何解决这个问题?
helper 是一个目录
目录结构:
main.py
helper/
└── __init__.py
main.py:
import helper
helper.run()
【问题讨论】:
-
您能否编辑您的问题以显示您如何导入
helper模块并显示您的代码目录结构?
标签: python-3.x visual-studio-code python-import pylance