给出JetBrains也就是Pycharm的官方回复If by “shadow” you mean brown coloring, that means that directory is marked as “excluded” in project structure. The code will run, but code inspection and insight won’t work for excluded folders, so please remove “excluded” flag from Project Structure settings.找到这个Project Structure,点击Add Content Root,选择这个项目的根目录,也就是选择这个项目的文件夹,就可以了
作者:请叫我算术嘉
链接:https://www.zhihu.com/question/338235925/answer/975901134
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。