diff --git a/snake.py b/snake.py
index 0e6d8cc..b82f871 100644
--- a/snake.py
+++ b/snake.py
@@ -1,13 +1,7 @@
 import pygame
-from pygame import locals
 
 # 初始化pygame,为使用pygame做准备
 pygame.init()
 
 # 创建一个窗口
-screen = pygame.display.set_mode((660,480))
-while True:
-    for event in pygame.event.get():
-        if event.type == locals.QUIT:
-            #接收到退出事件后退出程序
-            exit()
\ No newline at end of file
+screen = pygame.display.set_mode((660,480))
\ No newline at end of file