机器学习——数组转化为列表 import numpy as np x=np.arange(12) print(x,type(x)) a=x.tolist()#数组转化为列表 print(x,type(x),a,type(a)) 答案如下图所示: