import pygame # 初始化pygame,为使用pygame做准备 pygame.init() # 创建一个窗口 screen=pygame.display.set_mode((800,600))