<doocs>0073.Set Matrix Zeroes_1.py
def setZeroes( matrix: List[List[int]]) -> None:
    m, n = len(matrix), len(matrix[0])
    zero_rows = [False] * m
    zero_cols = [False] * n
    for i in range(m):
        for j in range(n):
            if matrix[i][j] == 0:
                zero_rows[i] = zero_cols[j] = True
    for i in range(m):
        for j in range(n):
            if zero_rows[i] or zero_cols[j]:
                matrix[i][j] = 0
def sample_funcname ( var_0 : List [ List [ int ] ] ) -> None :
    var_5 , var_7 = len ( var_0 ) , len ( var_0 [ 0 ] )
    var_9 = [ False ] * var_5
    var_10 = [ False ] * var_7
    for var_12 in range ( var_5 ) :
        for var_13 in range ( var_7 ) :
            if var_0 [ var_12 ] [ var_13 ] == 0 :
                var_9 [ var_12 ] = var_10 [ var_13 ] = True
    for var_12 in range ( var_5 ) :
        for var_13 in range ( var_7 ) :
            if var_9 [ var_12 ] or var_10 [ var_13 ] :
                var_0 [ var_12 ] [ var_13 ] = 0
