def __init__(self, matrix):
        if not matrix:
            return

        m, n = len(matrix), len(matrix[0])
        self.__sums = [[0 for _ in xrange(n+1)] for _ in xrange(m+1)]
        for i in xrange(1, m+1):
            for j in xrange(1, n+1):
                self.__sums[i][j] = self.__sums[i][j-1] + matrix[i-1][j-1]
        for j in xrange(1, n+1):
            for i in xrange(1, m+1):
                self.__sums[i][j] += self.__sums[i-1][j]
insert url into tornado application handlers group
dataset/ETHPy150Open kamyu104/LeetCode/Python/range-sum-query-2d-immutable.py/NumMatrix.__init__--crossover with--dataset/ETHPy150Open wecatch/app-turbo/turbo/register.py/register_url