"""
__author__ = 'pinsily'
__mtime__ = '2017/4/30'
# coding your code is here!
"""
import pygame
from pygame.locals import *
from sys import exit
bg_image = 'photo-4.jpg'
# init
pygame.init()
# create a screen
screen = pygame.display.set_mode((640, 480), 0, 32)
# create a screen's title
pygame.display.set_caption("load image")
【pygame入门】-- 加载图片
最新推荐文章于 2024-07-17 19:34:21 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)