Contoh Numpy ROT90 berputar sekali

# welcome to softhunt.net
# Python Program illustrating
# numpy.rot90() method

import numpy as np

array = np.arange(9).reshape(3, 3)
print("Original array : \n", array)

# Rotating once
print("\nArray being rotated 1 times : \n", np.rot90(array))
Outrageous Ostrich