From ee45c1f350c28bfcffb42e559b5f9a29c4fd2824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BA=E6=96=8C?= <14657755+he-bin33@user.noreply.gitee.com> Date: Tue, 8 Jul 2025 13:42:16 +0000 Subject: [PATCH] update main.py. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 贺斌 <14657755+he-bin33@user.noreply.gitee.com> --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index 724fc84..00b86d3 100644 --- a/main.py +++ b/main.py @@ -126,9 +126,8 @@ def main(): screen.fill((255,255,255)) - # 画蛇身 / 每一步+1分 + # 画蛇身 if not isdead: - scores+=1 snake.move() for rect in snake.body: pygame.draw.rect(screen,(20,220,39),rect,0) -- Gitee