Commit 5d90321f by BellCodeEditor

save project

parent 289cfad1
Showing with 1 additions and 1 deletions
...@@ -6,7 +6,7 @@ pygame.init() ...@@ -6,7 +6,7 @@ pygame.init()
# 创建一个窗口 # 创建一个窗口
screen=pygame.display.set_mode((660,480)) screen=pygame.display.set_mode((660,480))
while True: #窗口一直打开 while True: #窗口一直打开
for event in pygame.event.get(): #获得产生的文件 for event in pygame.event.get(): #获得产生的文件,遍历事件
if event.type==locals.QUIT: #实现关闭按钮的功能 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