unsupported operand type(s) for *: 'int' and 'method'
各位,这种情况怎么解决啊
```python
class Block(pygame.sprite.Sprite):
def __init__(self, blockType, baseRowIdx, baseColIdx, blockShape, blockRot, blockGroupIdx, width, height, relPos):
super().__init__()
self.blockType = blockType
self.blockShape = blockShape
self.blockRot = blockRot
self.blockGroupIdx = blockGroupIdx
self.baseRowIdx = baseRowIdx
self.baseColIdx = baseColIdx
self.width = width
self.height = height
self.relPos = relPos
self.loadImage()
self.updateImagePos()
def updateImagePos(self):
self.rect = self.image.get_rect()
self.rect.left = self.relPos[0] + self.width * self.colIdx
self.rect.top = self.relPos[1] + self.height * self.rowIdx
出问题的源码在这
def getBlockConfigIndex(self):
return BLOCK_SHAPE[self.blockShape][self.blockRot][self.blockGroupIdx]
def rowIdx(self):
return self.baseRowIdx + self.getBlockConfigIndex()[0]
def colIdx(self):
return self.baseColIdx + self.getBlockConfigIndex()[1]
该咋解决啊