<qiyuangong>422_Valid_Word_Square_1.py
def validWordSquare( words):
    if words is None or len(words) == 0:
        return True
    ls = len(words)
    for i in range(ls):
        for j in range(1, len(words[i])):
            if j >= ls:
                return False
            if i >= len(words[j]):
                return False
            if words[i][j] != words[j][i]:
                return False
    return True
def sample_funcname ( var_0 ) :
    if var_0 is None or len ( var_0 ) == 0 :
        return True
    var_5 = len ( var_0 )
    for var_7 in range ( var_5 ) :
        for var_9 in range ( 1 , len ( var_0 [ var_7 ] ) ) :
            if var_9 >= var_5 :
                return False
            if var_7 >= len ( var_0 [ var_9 ] ) :
                return False
            if var_0 [ var_7 ] [ var_9 ] != var_0 [ var_9 ] [ var_7 ] :
                return False
    return True
