Pygame错误:TabError

时间:2016-09-30 19:04:48

标签: python pygame

“TabError:在缩进中使用制表符和空格不一致”从我的程序返回。

self.image = pygame.image.load("Assets/SPRITE ASSETS/ship_down.png")
                                                               ^
TabError: inconsistent use of tabs and spaces in indentation

我的代码是:

class Ship(pygame.sprite.Sprite):
    def __init__(self, movex, movey):
        super().__init__()

        self.image = pygame.image.load("Assets/SPRITE ASSETS/ship_down.png")

        self.movex = movex
        self.movey = movey

        self.DIRECTION = "DOWN"
        self.moving = False

请帮忙。谢谢!

0 个答案:

没有答案