VSCode 高亮显示 python 导入失败

问题描述 投票:0回答:0

enter image description here

如您在上面的屏幕截图中所见,我的 Visual Studio Code 在渲染高光时遇到了一些问题,只有

numpy
torch
等导入的高光。

这发生在我重启我的笔记本电脑后,之前一切正常。

代码运行良好,但我只是因为没有适当的突出显示而感到恼火。

(这也很神秘,因为我所做的只是重启我的笔记本电脑...)

我试过将语言服务器从

Default
更改为
Pylance
,还重新安装了
Pylance
。但是,都没有用。

python pytorch highlight
© www.soinside.com 2019 - 2024. All rights reserved.