问题 pycharm 显示红色下划线提示: 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. 解决方案 右击pycharm中项目名–>Mark Directory as -->Resource root,然后重新打开项目红线就消失了