我在我的代码中做错了什么它说这个错误消息 unindent 与代码中的任何外部缩进级别不匹配你可以重写它来告诉我在哪里改变
import pygame
# Intialize the pygame
pygame.init()
# create the screen
screen = pygame.display.set_mode ((800, 600))
# Caption and Icon
pygame.display.set_caption("Space Invader")
icon = pygame.image.load("spaceship (1).png")
pygame.display.set_icon(icon)
# Player
playerImg = pygame.image.load('space-invaders(1).png')
playerX = 370
playerY = 480
def player():
screen.blit(playerImg, (playerX, playerY))
# Game loop
running = True
while running:
# RGB = Red, Green, Blue
screen.fill((0, 0, 0))
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
player()
pygame.display.update()