Why does it say that module pygame has no init member?

前端 未结 14 1181
予麋鹿
予麋鹿 2020-12-01 13:57

This is the code I have:

import pygame
pygame.init()

I\'m very confused because if I try to run the file, then there seems to be no issue,

14条回答
  •  自闭症患者
    2020-12-01 14:41

    I found a solution, modifying the most voted answer:

    "python.linting.pylintArgs": [
        "--extension-pkg-whitelist=pygame"
    ]
    

    Replaced the "lxml" with "pygame".

提交回复
热议问题