比如说,我的项目结构如下:
project_folder:
__init__.py
another_folder:
__init__.py
main_file.py
other_file.py
Run Code Online (Sandbox Code Playgroud)
并main_file.py包含下一个代码:
import other_file as whatever
Run Code Online (Sandbox Code Playgroud)
PyCharm(PEP8)将此行突出显示为"错误" no module named other_file,并且在任何调用上都没有自动完成功能whatever.this_should_be_autoc_suggested.同时翻译工作得非常好.
这种烦人行为的原因是什么?
| 归档时间: |
|
| 查看次数: |
1400 次 |
| 最近记录: |