📅  最后修改于: 2022-03-11 14:45:52.341000             🧑  作者: Mango
import pygame
surface = pygame.display.set_mode((350, 250), pygame.RESIZABLE)
for event in pygame.event.get():
if event.type == pygame.VIDEORESIZE:
surface = pygame.display.set_mode((event.w, event.h), pygame.RESIZABLE)