Commit f0f7f196 by BellCodeEditor

save project

parent 0535af61
Showing with 8 additions and 1 deletions
import pygame import pygame
from pygame import locals
#初始化pygame
pygame.init() pygame.init()
#创建一个窗口
screen=pygame.display.set_mode((660,480)) screen=pygame.display.set_mode((660,480))
while True:
for even in pygame.event.get():#获取pygame产生的事件
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