np.r_ also provides us with the function np.array(), which is inconvenient to use and you can go back and review if you forget.

 

Finally, there is the parameter 'r/c' which allows us to do an array merge of rows or columns. Because of this parameter, np.r_ provides us with the functionality of np.c_. If we understand the logic of np.r_, then we don't need to learn more about np.c_ to mess up our thinking.

Screenshot 2021-05-22 194543.jpg

Screenshot 2021-05-22 194641.jpg

Screenshot 2021-05-22 194730.jpg

Screenshot 2021-05-22 195139.jpg

Screenshot 2021-05-22 195514.jpg

創作者介紹
創作者 Wayneezzzz 的頭像
Wayneezzzz

Wayneezzzz

Wayneezzzz 發表在 痞客邦 留言(0) 人氣( 0 )