首页 > 解决方案 > 模块 Pygame 没有 init 成员?

问题描述

我正在尝试导入和使用 pygame:

import pygame

pygame.init()

我使用 Visual Studio Code,但出现“模块 'pygame' 没有 'init' 成员”的问题。

我已经尝试使用多个版本来编辑设置:

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

但这对我不起作用。有没有其他方法可以解决这个问题?

标签: pythonvisual-studio-codepygame

解决方案


推荐阅读