📅  最后修改于: 2022-03-11 14:46:02.904000             🧑  作者: Mango
screen = pygame.display.set_mode((700, 500))
#get 2 variables for width and height
x, y = pygame.display.get_surface()
#get width
x = screen.get_width()
#get height
y = screen.get_height()