Commit 1f1820d4 by BellCodeEditor

save project

parent 559f04df
Showing with 3 additions and 2 deletions
...@@ -5,7 +5,7 @@ pygame.init() ...@@ -5,7 +5,7 @@ pygame.init()
# 创建一个窗口 # 创建一个窗口
screen=pygame.display.set_mode((480,360)) screen=pygame.display.set_mode((480,360))
while true: while True:
for event in pygame.event.get(): for event in pygame.event.get():
ifevent == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment