Commit b9f531b3 by BellCodeEditor

save project

parent e1678e2f
Showing with 3 additions and 5 deletions
...@@ -2,13 +2,11 @@ import pygame ...@@ -2,13 +2,11 @@ import pygame
from pygame import locals from pygame import locals
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
s = pygame.image.load('a.png') pygame.display.set_mode((600,500))
a = pygame.display.set_mode((900,900))
# 创建一个窗口 # 创建一个窗口
while True: while True:
for i in pygame.event.get(): for i in pygame.event.get():
print(i) print(i)
pygame.image.load(a.png)
if i.type == locals.QUIT: if i.type == locals.QUIT:
exit() exit()
\ No newline at end of file
a.blit(s,(479,503))
pygame.display.urgent()
\ 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