
Python
bianjingshan
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Ubuntu python 升级
1.安装新版本pythonsudo apt-get install python3python3被安装在/usr/local/lib路径,到此目录下查看python3的版本号,例如python3.52.删除/usr/bin路径下的python link文件cd /usr/binsudo rm -rf python3.重新建立连接sudo ln原创 2017-08-31 10:09:03 · 342 阅读 · 0 评论 -
Numpy 常用操作
1. 排序# 升序:sort_order = np_data[:,col_index].argsort()sort_data = np_data[sort_order]# 降序:sort_order = np_data[:,col_index].argsort()sort_order = sort_order[::-1]sort_data = np_data[sort_orde...原创 2019-08-17 17:27:16 · 163 阅读 · 0 评论 -
numpy 数组合并
1. np.appenda = np.array([[1,2,3], [4,5,6]]) # shape: 2,3print(a)b = np.array([[7,8,9]]) # shape: 1,3print(b)c = np.array([[11], [12]]) # shape: 2,1print(c)merged = np.append(a, b, axis...原创 2019-10-08 11:26:10 · 449 阅读 · 0 评论