Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. from numpy import ones
  2.  
  3. arr = ones((3,3))
  4. arr[:, 0] += 1
  5. arr[..., 1] += 2
  6.  
  7. #arr
  8. #array([[2, 3, 1],
  9. # [2, 3, 1],
  10. # [2, 3, 1]])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement