python - 模块 Pygame 没有 init 成员?
问题描述
我正在尝试导入和使用 pygame:
import pygame
pygame.init()
我使用 Visual Studio Code,但出现“模块 'pygame' 没有 'init' 成员”的问题。
我已经尝试使用多个版本来编辑设置:
"python.linting.pylintArgs": [
"----extension-pkg-whitelist=1xml"
]
但这对我不起作用。有没有其他方法可以解决这个问题?
解决方案
推荐阅读
- simulation - 如何使用有限数量的卡车重新创建装载卡车箱?
- jquery - 未捕获的错误:此元素上已安装颜色选择器
- node.js - 尝试构建 Angular 构建时收到错误
- php - 如何在 Laravel 5.7 中重定向 //?
- python - Coursera-dl 没有下载课程命令提示符 Windows
- python - 在 gcc 中链接 Python 3.8 库时出现问题
- django - 如何在 Django 频道中实现多聊天
- c - 什么时候写“0 - x”而不是“-x”有用?
- python - 格式化从 dropdwon 框中抓取的数据并将数据添加到 Python Beautifulsoup 中的结果中
- r - 是否有默认方法来记录 R 中用户点击的坐标?