<qiyuangong>073_Set_Matrix_Zeroes_1.py
def setZeroes( matrix):
    if not matrix:
        return
    m = len(matrix)
    if m == 0:
        return
    r = []
    c = []
    n = len(matrix[0])
    for i in range(m):
        for j in range(n):
            if matrix[i][j] == 0:
                r.append(i)
                c.append(j)
    r = set(r)
    c = set(c)
    for i in r:
        for j in range(n):
            matrix[i][j] = 0
    for i in range(m):
        for j in c:
            matrix[i][j] = 0
def sample_funcname ( var_0 ) :
    if not var_0 :
        return
    var_2 = len ( var_0 )
    if var_2 == 0 :
        return
    var_4 = [ ]
    var_5 = [ ]
    var_6 = len ( var_0 [ 0 ] )
    for var_8 in range ( var_2 ) :
        for var_9 in range ( var_6 ) :
            if var_0 [ var_8 ] [ var_9 ] == 0 :
                var_4.append ( var_8 )
                var_5.append ( var_9 )
    var_4 = set ( var_4 )
    var_5 = set ( var_5 )
    for var_8 in var_4 :
        for var_9 in range ( var_6 ) :
            var_0 [ var_8 ] [ var_9 ] = 0
    for var_8 in range ( var_2 ) :
        for var_9 in var_5 :
            var_0 [ var_8 ] [ var_9 ] = 0
