Blitting images onto a tile that is part of a grid in pygame
问题 # User-defined functions def main(): # initialize all pygame modules (some need initialization) pygame.init() # create a pygame display window pygame.display.set_mode((500, 400)) # set the title of the display window pygame.display.set_caption('Memory') # get the display surface w_surface = pygame.display.get_surface() # create a game object game = Game(w_surface) # start the main game loop by calling the play method on the game #object game.play() # quit pygame and clean up the pygame window