Commit 9e1ce0a4 by BellCodeEditor

save project

parent 76ed86b9
Showing with 2 additions and 2 deletions
import pygame
from pygame import locals,display,event,init
from pygame import locals,display,init
from pygame.time import Clock as TIME
from pygame.image import load
from random import choice
......@@ -32,7 +32,7 @@ rect.x = 1000
rect.y = 500 - rect.height
while True:
for event in event.get():
for event in pygame.event.get():
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
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