Commit 94f6455a by BellCodeEditor

save project

parent 7320b576
Showing with 1 additions and 6 deletions
import pygame import pygame
from pygame import locals
#子模块
pygame.init() pygame.init()
#初始化 from pygame import locals
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()
\ 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