python中 list 与数组的互相转换

(1)list转array

    np.array(a)

(2)array 转list

    a.tolist()

posted @ 2021-10-08 15:47  呦呦南山  阅读(834)  评论(0编辑  收藏  举报