import resolves to its containing file 问题,pycharm导模块,模块名下有横线


pycharm导模块,模块名下有横线,且鼠标放上面,显示import resolves to its containing file  问题。

这个问题其实很简单,是因为当前程序目录下有与模块名相同的程序文件,或者自己当前程序文件的名就是该模块名。

把这个程序文件名换了就行了。


import resolves to its containing file 问题,pycharm导模块,模块名下有横线_第1张图片




你可能感兴趣的:(import resolves to its containing file 问题,pycharm导模块,模块名下有横线)