没有更新屏幕吧,我这个代码也不行吗
import pygame from pygame.locals import* pygame.init() canvas = pygame.display.set_mode((800, 500)) pygame.display.set_caption("飞机大战") while True: pygame.display.update()