>>> import numpy as np >>> a = np.array([[1,2],[3,4]]) >>> b=a.tolist() >>> b [[1, 2], [3, 4]]
python数组转列表
原文:https://www.cnblogs.com/yibeimingyue/p/15026185.html