Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- np.random.seed(42)
- arr = np.round(np.random.random(size=(10,10)) * 482).astype("uint16")
- def pprint(arr):
- for row in arr:
- for num in row:
- print("{:3d}".format(num), end=" ")
- print()
- pprint(arr)
- print("max: " + str(np.max(arr)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement