Commit 195a6bcd by BellCodeEditor

auto save

parent d837207a
Showing with 4 additions and 2 deletions
...@@ -6,7 +6,9 @@ pygame.init() ...@@ -6,7 +6,9 @@ pygame.init()
# 创建一个窗口 # 创建一个窗口
screen=pygame.display.set_mode((800,600)) screen=pygame.display.set_mode((800,600))
a=True a=True
while a: while a:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == pygame.QUIT: if event.type == pygame.QUIT:
running = False a = False
\ No newline at end of file
\ 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