pygame.init() 会在vscode中出现这个问题,我们可以使用将下面的语句添加到用户设置中,屏蔽pylint对pygame的检查。
"python.linting.pylintArgs": ["--extension-pkg-whitelist=pygame"]
结果,不存在刚才的错误提示
pygame.init() 会在vscode中出现这个问题,我们可以使用将下面的语句添加到用户设置中,屏蔽pylint对pygame的检查。
"python.linting.pylintArgs": ["--extension-pkg-whitelist=pygame"]
结果,不存在刚才的错误提示