Commit fcd22ed3 by BellCodeEditor

save project

parent c6188a1e
Showing with 10 additions and 5 deletions
import pygame import pygame as p
from pygame import locals as l
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() p.init()
# 创建一个窗口 # 创建一个窗口
?? s=p.display.set_mode((660,480))
\ No newline at end of file while 1:
for event in p.event.get():
print(event)
if event.type == l.QUIT:
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