只需要导3个包,粘贴即玩的python贪吃蛇源码 import pygame import sys import random # 全局定义 SCREEN_X = 600 SCREEN_Y = 600 # 蛇类 # 点以25为单位 class Snake(