Commit 4410b5b4 by BellCodeEditor

save project

parent 23098c06
Showing with 8 additions and 3 deletions
...@@ -2,5 +2,10 @@ import pygame ...@@ -2,5 +2,10 @@ import pygame
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗
screen=pygame.display.set_mode((1300,1000)) from pygame import locals
\ No newline at end of file screen=pygame.display.set_mode((1300,800))
while True:
for event in pygame.event.get():
if event.type == locals.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