摘要: import time time_start=time.time() time_end=time.time() print('totally cost',time_end-time_start) 阅读全文
posted @ 2017-10-25 15:53 Anlovescode 阅读(96882) 评论(0) 推荐(3) 编辑
摘要: array 的创建可以通过list给 array print出来像一个表格,可以按行按列来观察。 原来是一个list相当于一行 np.where用于寻找一个condition下的坐标,返回的是一个2个元素的tuple,第一个元素是一个array,第二个是数据类型 代码的作用是找到返回的下标里的最大值 阅读全文
posted @ 2017-10-25 15:52 Anlovescode 阅读(2203) 评论(0) 推荐(1) 编辑
摘要: 对某一个位置排列 此方法针对按每个list排列,按照第一列元素排序。 阅读全文
posted @ 2017-10-25 15:39 Anlovescode 阅读(419) 评论(0) 推荐(0) 编辑