Commit 0419e414 by BellCodeEditor

auto save

parent 6afb1a13
Showing with 14 additions and 0 deletions
import pygame
from pygame import locals
# 初始化,检查pygame模块是否安装或电脑硬件是否正常运行。
pygame.init()
screen = pygame.display.set_mode(size=(500,500))
while True:
# 遍历事件类型
for event in pygame.event.get():
print(event)
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