How to create a numpy array by python list

We can use python list to create a numpy array, for example:

>>> import numpy as np
>>> x = np.array([1,2,3])
>>> x
array([1, 2, 3])
>>> x = np.array([[1,2,3],[3,4,5]])
>>> x
array([[1, 2, 3],
 [3, 4, 5]])
>>>

,