How to use a list of multi-dimensional arrays as an incoming parameter in the use of numpy.array ()
Numpy.array () in the use of how to use the list of multi-dimensional arrays as the input parameters, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.
Experiment:
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license ()" for more information. > > import numpy as np > > a = np.ones ((3Yu5)) > > b = np.zeros ((3jing5)) > > aarray ([1.1,1.1.1.1.1.1.] [1, 1, 1, 1.]) > barray ([[0, 0, 0, 0, 0.], [0, 0, 0, 0.], [0, 0, 0, 0, 0.]) > np.array ([aMaginb]) array ([[1, 1, 1, 1, 1.], [1, 1, 1, 1.] [1, 1, 1, 1.], [[0, 0, 0, 0, 0.], [0, 0, 0, 0.], [0, 0, 0, 0.]]) > c = np.array ([AMagneb]) > c.shape (2, 3, 5) > > np.array ([aPerminence bpen]) .shape (6, 3) 5) > is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.