方法一:
键盘使用 “ctrl+shift+p” 调出快捷命令,也可以按F1,并输入“>Python: Clear Cache and Reload Window ”,回车。清除 VSCode 先前的缓存内容,如下图所示。
方法二:
键盘使用 ” ctrl + ,"(或者点击左下角齿轮进入设置),进入设置中,在搜索量里输入 python locator,将“native"更改为 “js”,最后重启VScode。
参考链接:https://blog.csdn.net/weixin_50398751/article/details/144552484