Pycharm中出现unresolved reference的解决办法
解决方案一
1、在项目上 单击右键 -> Mark Directory as -> Sources Root
2、进入设置:file -> settings
3、按照下图展开 Build,Execution,Deployment -> Console -> Python Console -> Add source roots to PYTHONPATH,勾选上,选择确定
解决方案二
1、Top Menu -> File -> Invalidate Caches/Restart
2、重新打开项目即可解决