Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- def macierz(n,m):
- A = np.random.randint(0,10,(m,n))
- B = np.empty([n,m], dtype=int)
- print A
- for i in range(0,n):
- for j in range(0,m):
- B[i][j]=A[j][i]
- print B
- A=A.transpose()
- return A
- macierz(5,8)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement