<doocs>0048.Rotate Image_1.py
def rotate( matrix: List[List[int]]) -> None:
    s, n = 0, len(matrix)
    while s < (n >> 1):
        e = n - s - 1
        for i in range(s, e):
            t = matrix[i][e]
            matrix[i][e] = matrix[s][i]
            matrix[s][i] = matrix[n - i - 1][s]
            matrix[n - i - 1][s] = matrix[e][n - i - 1]
            matrix[e][n - i - 1] = t
        s += 1
def sample_funcname ( var_0 : List [ List [ int ] ] ) -> None :
    var_5 , var_7 = 0 , len ( var_0 )
    while var_5 < ( var_7 >> 1 ) :
        var_9 = var_7 - var_5 - 1
        for var_11 in range ( var_5 , var_9 ) :
            var_12 = var_0 [ var_11 ] [ var_9 ]
            var_0 [ var_11 ] [ var_9 ] = var_0 [ var_5 ] [ var_11 ]
            var_0 [ var_5 ] [ var_11 ] = var_0 [ var_7 - var_11 - 1 ] [ var_5 ]
            var_0 [ var_7 - var_11 - 1 ] [ var_5 ] = var_0 [ var_9 ] [ var_7 - var_11 - 1 ]
            var_0 [ var_9 ] [ var_7 - var_11 - 1 ] = var_12
        var_5 += 1
