<qiyuangong>048_Rotate_Image_1.py
def rotate( matrix):
    if matrix is None or len(matrix) == 1:
        return
    ls = len(matrix)
    for i in range(ls / 2):
        begin, end = i, ls - 1 - i
        for k in range(ls - 2 * i - 1):
            temp = matrix[end - k][begin]
            matrix[end - k][begin] = matrix[end][end - k]
            matrix[end][end - k] = matrix[begin + k][end]
            matrix[begin + k][end] = matrix[begin][begin + k]
            matrix[begin][begin + k] = temp
    return
def sample_funcname ( var_0 ) :
    if var_0 is None or len ( var_0 ) == 1 :
        return
    var_4 = len ( var_0 )
    for var_7 in range ( var_4 / 2 ) :
        var_8 , var_9 = var_7 , var_4 - 1 - var_7
        for var_10 in range ( var_4 - 2 * var_7 - 1 ) :
            var_11 = var_0 [ var_9 - var_10 ] [ var_8 ]
            var_0 [ var_9 - var_10 ] [ var_8 ] = var_0 [ var_9 ] [ var_9 - var_10 ]
            var_0 [ var_9 ] [ var_9 - var_10 ] = var_0 [ var_8 + var_10 ] [ var_9 ]
            var_0 [ var_8 + var_10 ] [ var_9 ] = var_0 [ var_8 ] [ var_8 + var_10 ]
            var_0 [ var_8 ] [ var_8 + var_10 ] = var_11
    return
