pygame.init() 会在vscode中出现这个问题,我们可以使用将下面的语句添加到用户设置中,屏蔽pylint对pygame的检查。

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

E1101:Module 'pygame' has no 'init' member

E1101:Module 'pygame' has no 'init' member

结果,不存在刚才的错误提示

E1101:Module 'pygame' has no 'init' member

相关文章:

  • 2021-03-27
  • 2021-05-20
  • 2021-11-20
  • 2022-02-07
  • 2022-12-23
  • 2021-10-22
  • 2021-07-02
  • 2021-07-17
猜你喜欢
  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2021-11-21
  • 2021-05-23
  • 2022-12-23
  • 2021-08-29
相关资源
相似解决方案