Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- arr = np.array([1,2,3,4,5,6,7,8,9,0])
- view1 = arr[0:5]
- view2 = arr[4:10]
- print(view1)
- print(view2)
- view1[4] = 3
- print(view1)
- print(view2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement