import sys #导入sys模块
import pygame #导入pygame
pygame.init()
size = width,height=640,480
screen=pygame.display.set_mode(size)
color=(0,0,0)
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()