Commit f6c4bbcf by BellCodeEditor

save project

parent 58a75f1e
Showing with 4 additions and 3 deletions
import pygame import pygame
from prgame event() from pygame import locals
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
# 创 # 创
pygame.display.set_mode((660,480)) pygame.display.set_mode((660,480))
while True: while True:
for a in pygame.event.get: for a in pygame.event.get():
if event==locals. if a.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