I see that people usually import Pygame like this:
import pygame
from pygame.locals import *
I don't understand what's the second line for. If we already imported the whole of Pygame, why import pygame.locals
? Doesn't Pygame already include it once it's imported?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…