1、list转换为numpy比较简单
numpy.array(list)
2、numpy转换为list
找了很多blog,很多都说用list直接转换,对我来说完全没用,很鸡肋
array.tolist()
array是需要转换的numpy数据
1、list转换为numpy比较简单
numpy.array(list)
2、numpy转换为list
找了很多blog,很多都说用list直接转换,对我来说完全没用,很鸡肋
array.tolist()
array是需要转换的numpy数据