From 1092f807702e3d971110fc9d53b3f1d4ec77f507 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 4 Dec 2021 17:43:40 +0800 Subject: [PATCH] save project --- snake.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snake.py b/snake.py index 74a34f9..3031f5b 100644 --- a/snake.py +++ b/snake.py @@ -60,8 +60,8 @@ while True: apple_x = num1 * 30 - 30 apple_y = num2 * 30 - 30 else: - position.append((x, y)) - position.pop(0) + position.pop(0) + position.append((x,y)) # 将背景图画上去 screen.blit(background, (0, 0)) # 将贪吃蛇的头画上去 -- libgit2 0.25.0