Python数组提取某一列元素

Python数组如何提取某一列元素? 环境:Python3.5css 不加工 group=[[1,2],[2,3],[3,4]] #提取第一列元素 print(group[:,1]) #Out:TypeError: list indices must be integers or slices, not tuple Numpy转化 参考——Python与机器学习之经常使用的Numpy操做 参考——
相关文章
相关标签/搜索