# 1.导入工具包 import pygame # 2.初始化 pygame.init() # 3.设置窗口 pygame.display.set_mode((700,600)) while True: pygame.display.update() # 4.刷新 pygame.quit() # 退出游戏
· · · · · ·