Commit dc733e21 by BellCodeEditor

save project

parent 464bdc7f
Showing with 5 additions and 4 deletions
...@@ -4,10 +4,10 @@ from pygame import locals ...@@ -4,10 +4,10 @@ from pygame import locals
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
screen=pygame.display.set__mode((800,660)) screen=pygame.display.set_mode((800,660))
while True while True:
for event in pygame.event.get(): for event in pygame.event.get():
print(event) print(event)
if event.type==12 if event.type==12:
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