【Leetcode】Given a non-negative integer numRows, generate the first numRows of Pascal's triangle.
Givenanon-negativeintegernumRows,generatethefirstnumRowsofPascal'striangle.classSolution(object):defgenerate(self,numRows):""":typenumRows:int:rtype:List[List[int]]"""ret=[[1],[1,1]]row=[1,1]ifnumRows