尝试学习 pygame 但我遇到了意外错误

问题描述

我正在学习 pygame 并且我的应用程序运行没有问题,但由于某种原因 VS Code 给了我一个错误。我怎样才能摆脱它?

这是python代码

import pygame,sys

pygame.init()

screen = pygame.display.set_mode((1280,720))
clock = pygame.time.Clock()

while True:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            pygame.quit()
            sys.exit()

        pygame.display.update()
        clock.tick(120)

顺便说一下,这里是错误信息:Module 'pygame' has no 'init/QUIT/quit' member

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)