Commit 289cfad1 by BellCodeEditor

save project

parent 406ce9a8
Showing with 3 additions and 3 deletions
......@@ -4,9 +4,9 @@ from pygame import locals
pygame.init()
# 创建一个窗口
screen=pygame.display.set_mode((660,480))
while True:
screen=pygame.display.set_mode((660,480))
while True: #窗口一直打开
for event in pygame.event.get(): #获得产生的文件
if event.type==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