tolist()方法:
列表可通过array()转换为数组或mat()转为矩阵
而tolist()可把数组对象或矩阵对象转为列表
数组对象:
array([[1, 2, 3],
[1, 2, 3]])
矩阵对象:
matrix([[1, 2, 3],
列表:
[[1, 2, 3],[1, 2, 3]]
python笔记--------二
原文:https://www.cnblogs.com/freeyouth/p/11600228.html