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

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