3
說,在不承認其他文件,我的項目結構如下:Pycharm進口相同的模塊
project_folder:
__init__.py
another_folder:
__init__.py
main_file.py
other_file.py
而且main_file.py
包含下面的代碼:
import other_file as whatever
PyCharm(PEP8)強調此行作爲錯誤「no module named other_file
」,並且在諸如whatever.this_should_be_autoc_suggested
之類的任何呼叫上都沒有自動完成功能。同時口譯員工作得很好。
這種煩人的行爲的原因是什麼?