使用Pycharm出现No module named Test_01_module_a less... (Ctrl+F1) This inspection detects names that sh

在进Python的模块学习的时候,发现导入不了,出现 No module named Test_01_module_a less... (Ctrl+F1)  This inspection detects names that should resolve but don't. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Top-level and class-level items are support错误,这个时候,我们把一个选项勾上就行了,找到file->setting,如下图,勾选进行Apply就行

使用Pycharm出现No module named Test_01_module_a less... (Ctrl+F1) This inspection detects names that sh_第1张图片

要是不行,那就清理缓存并重启:

使用Pycharm出现No module named Test_01_module_a less... (Ctrl+F1) This inspection detects names that sh_第2张图片


你可能感兴趣的:(Python)