Commit 9f5c2708 by BellCodeEditor

save project

parent 743dd84a
Showing with 2 additions and 3 deletions
...@@ -4,11 +4,10 @@ import pygame ...@@ -4,11 +4,10 @@ import pygame
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
1=pygame.display.set_mode((800,600)) D=pygame.display.set_mode((800,600))
while True: while True:
for a in pygame.a.get(): for a in pygame.event.get():
print(a)
if a.type==pygame.locals.QUIT: if a.type==pygame.locals.QUIT:
exit() exit()
......
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