VSCode中出现Module 'pygame' has no 'init' member错误的解决方法

在VSCode设置中找到settings.json,如下图:
在这里插入图片描述
加入如下代码保存并关闭json文件:
“python.linting.pylintArgs”: [ “----extension-pkg-whitelist=1xml” ]
在这里插入图片描述
对应问题就会忽略掉不再出现。

猜你喜欢

转载自blog.csdn.net/richand112233/article/details/89477953