Python Tutorials
Draw rectangle:
Use PIL to show ndarray:
Convert numpy multi-dim ndarray to 1-dim array:
Remove duplicate elements
Output:
>>> [1, 2, 3, 4, 5]
Simple operations
>>> [[5, 5, 5, 10], [4, 4, 4, 20], [3, 3, 3, 30], [2, 2, 2, 40], [1, 1, 1, 50]]