按 Ctrl+左键 不能进入类或方法,提示 Cannot find declaration to go to
Ctrl+左键
Cannot find declaration to go to
右键点击左侧文件导航栏整个项目文件夹,然后右击选择 Mark Directory as → Sources Root
Mark Directory as
Sources Root
点击 File → Settings 进入设置界面
File
Settings
在设置界面点击 Python Interpreter → <No interpreter> → Python 3.9 → OK 完成
Python Interpreter
<No interpreter>
Python 3.9
OK