snake.py 141 Bytes Edit 1 2 3 4 5 6 7 import pygame # 初始化pygame,为使用pygame做准备 pygame.init() # 创建一个窗口 screen = pygame.display.set_mode((680,800))