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

前端 未结 14 1195
予麋鹿
予麋鹿 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:43

    I just wrote like this!

    from pygame import * #this will import everything inside the pygame module
    import pygame
    

    Now I'm not getting any errors in vscode.

提交回复
热议问题