import pygame, sys
from pygame.locals import *
pygame.init()
window = pygame.display.set_mode((640,360),0,32)
pygame.display.set_caption("My game.")
black = [0,0,0]
white = [255,255,255]
img = pygame.image.load("images/bg.jpg").convert_aplpha() # This is where I get the error.
我得到的错误是img = pygame.image.load("images/bg.jpg").convert_aplpha()
AttributeError: 'pygame.Surface' object has no attribute 'convert_aplpha'
拜托,这是什么意思,我该如何解决?