📜  python convery list to array - Python代码示例

📅  最后修改于: 2022-03-11 14:45:36.445000             🧑  作者: Mango

代码示例1
import numpy as np
my_list = [2,4,6,8,10]
my_array = np.array(my_list)
# printing my_array
print my_array
# printing the type of my_array
print type(my_array)