PYGame - ImportError: No module named locals Raspberry Pi

前端 未结 2 1132
说谎
说谎 2021-01-07 12:52

I have the following code:

 #!/usr/bin/python
 # -*- coding: iso-8859-15 -*-

 import pygame, random
 from pygame.locals import *
 pygame.init()
 clock = pyg         


        
2条回答
  •  攒了一身酷
    2021-01-07 13:27

    Try using IDLE instead of IDLE 3. It worked for me and I had exactly the same problem shown above.

提交回复
热议问题