标签: python numpy tuples
我想转换像a = [(1,2),(2,49),(3,45)]
a = [(1,2),(2,49),(3,45)]
到numpy矩阵:[[1,2],[2,49],[3,45]]
[[1,2],[2,49],[3,45]]
任何人都可以帮助我吗?
提前致谢
答案 0 :(得分:-1)
试试这个:
a = [(1,2),(2,49),(3,45)]
打印地图(列表,a)