摘要: 需求:同事让我写一个python代码实现对某一文件下所有sql文件中的sql语句进行扫描,观察每个sql判断每个table是作为中间表,结果表还是依赖表。 思路当然是用正则去匹配; 我们先复习一下什么是三个表究竟是啥? 阅读全文
posted @ 2019-01-03 22:07 wqbin 阅读(1453) 评论(0) 推荐(0) 编辑
摘要: 1.一维数组中寻找与某个数最近的数 随机数组: [0.87249114 0.64595395 0.10142435 0.46202885 0.15948433 0.53886897 0.17802543 0.0885369 0.9859855 0.92086206 0.94694556 0.9814 阅读全文
posted @ 2019-01-03 10:32 wqbin 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 1.import numpy as npZ=np.random.randint(0,10,(5,5)) print("排序前:\n",Z) print("Z[:,2]:\n",Z[:,2],type(Z[:,2])) print("Z[:,2].argsort:\n",Z[:,2].argsort( 阅读全文
posted @ 2019-01-03 09:42 wqbin 阅读(307) 评论(0) 推荐(0) 编辑
摘要: numpy.random.uniform介绍: 1. 函数原型: numpy.random.uniform(low,high,size) ==》也即其他函数是对该函数的进一步封装 功能:从一个均匀分布[low,high)中随机采样,注意定义域是左闭右开,即包含low,不包含high. 参数介绍: l 阅读全文
posted @ 2019-01-03 09:31 wqbin 阅读(778) 评论(0) 推荐(0) 编辑