numpy.transpose() transpose fails

Transpose fails for two reasons, neither of which throws an error.

1. The length of each row of the matrix is ​​different and cannot be transposed.

2. The defined array is one-dimensional, and it is one-dimensional after transposition. Look at the picture to understand the difference between a and b:

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324617288&siteId=291194637