[按此打開]
[隱藏]
import pygame
pygame.init()
X = 800
Y = 600
scrn = pygame.display.set_mode((X, Y))
pygame.display.set_caption('image')
imp = pygame.image.load("D:\\gr.png").convert()
scrn.blit(imp, (0, 0))
pygame.display.flip()
status = True
while (status):
for i in pygame.event.get():
if i.type == pygame.QUIT:
status = False
pygame.quit()
附件
- gr.png(86.13 KB)
2024-2-9 09:31