解决办法
VSCode中,
Ctrl+Shift+P → 输入 Preferences: Open Workspace Settings (JSON)
在json中添加路径
"python.analysis.extraPaths": [
// 实际的模块路径(比如以下是你的场景)
"xxx",
"xxxx"
],
VSCode中,
Ctrl+Shift+P → 输入 Preferences: Open Workspace Settings (JSON)
在json中添加路径
"python.analysis.extraPaths": [
// 实际的模块路径(比如以下是你的场景)
"xxx",
"xxxx"
],