Bootstrap

解决python/pycharm中import导入模块时报红却能运行的问题

一、问题

导入时报红,如下

二、解决

右键单击项目,将项目Mark Directory as→Sources Root

三、效果

报红消失


学习导航:http://www.xqnav.top 

;