Reason: For security reasons, Pylint only trusts C extensions from the standard library stdlib by default, but the module "pygame" does not come from it.
Please add the following settings in settings.json
to add it to the whitelist:
"python.linting.pylintArgs": ["--extension-pkg-whitelist=pygame"],
Or use the following settings:
"python.linting.pylintArgs": [ "--errors-only", "--generated-members=pygame.* " ]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…