From 001ec20dce77e1cc7a5d1a6926949f5d8d0fde58 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 17 Oct 2021 14:28:10 +0800 Subject: [PATCH] save project --- snake.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snake.py b/snake.py index 7f10f9d..693f54a 100644 --- a/snake.py +++ b/snake.py @@ -55,7 +55,7 @@ while True: position.pop(0) # 将背景图画上去 screen.blit(background, (0, 0)) - if x == apple_x and y == apple_y + if x == apple_x and y == apple_y: unm1 = random.randint(0,21) unm2 = random.randint(0,15) apple_x = unm1*30 -- libgit2 0.25.0