元旦代码可复制2024答:screen = pygame.display.set_mode((screen_width, screen_height))设置颜色 WHITE = (255, 255, 255)BLACK = (0, 0, 0)RED = (255, 0, 0)设置烟花参数 firework_size = 10 firework_speed = 3 firework_color = (random.randint(0, 255), random.randint(0, 255), random.randint(0...